From badb4753e48b80b95bf9688b6fff153a92ec48c3 Mon Sep 17 00:00:00 2001 From: Pascal Wittmann Date: Thu, 2 Jan 2014 11:32:27 +0100 Subject: Allow the user to execute commands at the beginning of the X session. The difference between xsession and xprofile is that xsession is exec'd and xprofile is sourced. So with xprofile all commands after sourcing will still be exectued. This allows for instance autostarting of applications while configuring the start of a window manager via configuration.nix. --- nixos/modules/services/x11/display-managers/default.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'nixos') diff --git a/nixos/modules/services/x11/display-managers/default.nix b/nixos/modules/services/x11/display-managers/default.nix index 80f559bddc4d..575386bac0aa 100644 --- a/nixos/modules/services/x11/display-managers/default.nix +++ b/nixos/modules/services/x11/display-managers/default.nix @@ -103,6 +103,11 @@ let ${cfg.displayManager.sessionCommands} + # Allow the user to execute commands at the beginning of the X session. + if test -f ~/.xprofile; then + source ~/.xprofile + fi + # Allow the user to setup a custom session type. if test -x ~/.xsession; then exec ~/.xsession -- cgit 1.4.1