1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-26 08:28:30 +02:00

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