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.
This commit is contained in:
Pascal Wittmann 2014-01-02 11:32:27 +01:00
parent fd343dc0c6
commit badb4753e4

View file

@ -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