nixos/x11: Source .xprofile earlier in xsession-wrapper

This allows users to set e.g. XCOMPOSECACHE before it's used.
This commit is contained in:
Stefan Frijters 2020-08-09 23:16:37 +02:00
parent 17f2d43f42
commit 37460768e2
No known key found for this signature in database
GPG key ID: 7619A6BC6E7DFA6F

View file

@ -37,6 +37,11 @@ let
. /etc/profile
cd "$HOME"
# Allow the user to execute commands at the beginning of the X session.
if test -f ~/.xprofile; then
source ~/.xprofile
fi
${optionalString cfg.displayManager.job.logToJournal ''
if [ -z "$_DID_SYSTEMD_CAT" ]; then
export _DID_SYSTEMD_CAT=1
@ -75,11 +80,6 @@ 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
# Start systemd user services for graphical sessions
/run/current-system/systemd/bin/systemctl --user start graphical-session.target