Correctly import final PATH env in systemd

This commit is contained in:
Alex Palaistras 2024-01-06 20:49:08 +00:00
parent 19d05aec22
commit 8c23252f4d
1 changed files with 3 additions and 3 deletions

View File

@ -1,9 +1,9 @@
# Import specific environment variables for user units.
systemctl --user import-environment PATH
# Set system-wide environment from systemd environment.
for conf in "$HOME"/.config/environment.d/*.conf; do set -a; . "$conf"; set +a; done
# Import specific environment variables for user units.
systemctl --user import-environment PATH
# Start Sway if no existing session has started.
if test -z "$DISPLAY" && test "$XDG_VTNR" -eq 1
then