xsession: always source ~/.profile

It seems to be pretty standard to do this so always do it, not just when
Bash is the session variable setter.
This commit is contained in:
Robert Helgesson 2017-01-28 18:29:27 +01:00
parent 10031e16bf
commit 11ef3873cd
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86

View file

@ -72,12 +72,9 @@ in
home.file.".xsession" = {
mode = "555";
text = ''
${
# If we want bash to set the session variables then we need
# to pull in .profile since that's where they are.
optionalString (config.home.sessionVariableSetter == "bash")
". \"$HOME/.profile\""
}
if [[ -e "$HOME/.profile" ]]; then
. "$HOME/.profile"
fi
systemctl --user import-environment DBUS_SESSION_BUS_ADDRESS
systemctl --user import-environment DISPLAY