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" = {
|
home.file.".xsession" = {
|
||||||
mode = "555";
|
mode = "555";
|
||||||
text = ''
|
text = ''
|
||||||
${
|
if [[ -e "$HOME/.profile" ]]; then
|
||||||
# If we want bash to set the session variables then we need
|
. "$HOME/.profile"
|
||||||
# to pull in .profile since that's where they are.
|
fi
|
||||||
optionalString (config.home.sessionVariableSetter == "bash")
|
|
||||||
". \"$HOME/.profile\""
|
|
||||||
}
|
|
||||||
|
|
||||||
systemctl --user import-environment DBUS_SESSION_BUS_ADDRESS
|
systemctl --user import-environment DBUS_SESSION_BUS_ADDRESS
|
||||||
systemctl --user import-environment DISPLAY
|
systemctl --user import-environment DISPLAY
|
||||||
|
|
Loading…
Reference in a new issue