diff options
author | Pascal Wittmann <mail@pascal-wittmann.de> | 2014-01-02 11:32:27 +0100 |
---|---|---|
committer | Pascal Wittmann <mail@pascal-wittmann.de> | 2014-01-02 11:38:44 +0100 |
commit | badb4753e48b80b95bf9688b6fff153a92ec48c3 (patch) | |
tree | e4e5ebf0129983aa884079d3c1c84a120d8f2a6b /nixos | |
parent | fd343dc0c6a738df4e8faba1924c7c199e57737b (diff) | |
download | nixlib-badb4753e48b80b95bf9688b6fff153a92ec48c3.tar nixlib-badb4753e48b80b95bf9688b6fff153a92ec48c3.tar.gz nixlib-badb4753e48b80b95bf9688b6fff153a92ec48c3.tar.bz2 nixlib-badb4753e48b80b95bf9688b6fff153a92ec48c3.tar.lz nixlib-badb4753e48b80b95bf9688b6fff153a92ec48c3.tar.xz nixlib-badb4753e48b80b95bf9688b6fff153a92ec48c3.tar.zst nixlib-badb4753e48b80b95bf9688b6fff153a92ec48c3.zip |
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.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/x11/display-managers/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
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 |