mirror of
https://github.com/nix-community/home-manager
synced 2024-11-10 07:04:17 +00: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:
parent
10031e16bf
commit
11ef3873cd
1 changed files with 3 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue