diff options
Diffstat (limited to 'modules/xsession.nix')
-rw-r--r-- | modules/xsession.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/xsession.nix b/modules/xsession.nix index 7a1642cc995..e1cf9942e7c 100644 --- a/modules/xsession.nix +++ b/modules/xsession.nix @@ -130,7 +130,7 @@ in home.file.".xprofile".text = '' . "${config.home.profileDirectory}/etc/profile.d/hm-session-vars.sh" - if [[ -e "$HOME/.profile" ]]; then + if [ -e "$HOME/.profile" ]; then . "$HOME/.profile" fi @@ -152,7 +152,7 @@ in home.file.${cfg.scriptPath} = { executable = true; text = '' - if [[ ! -v HM_XPROFILE_SOURCED ]]; then + if [ -z "$HM_XPROFILE_SOURCED" ]; then . ~/.xprofile fi unset HM_XPROFILE_SOURCED @@ -167,7 +167,7 @@ in systemctl --user stop graphical-session-pre.target # Wait until the units actually stop. - while [[ -n "$(systemctl --user --no-legend --state=deactivating list-units)" ]]; do + while [ -n "$(systemctl --user --no-legend --state=deactivating list-units)" ]; do sleep 0.5 done ''; |