Skip to content

Commit

Permalink
fix: list environment variables to be imported
Browse files Browse the repository at this point in the history
to silence the warning issued by systemd.
closes #25
  • Loading branch information
boredland authored and xdbob committed Feb 18, 2024
1 parent e0d720e commit e3d9b8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/sway-user-service
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export XDG_CURRENT_DESKTOP=sway
new_env=$(systemctl --user show-environment | cut -d'=' -f 1 | sort | comm -13 - <(env | cut -d'=' -f 1 | sort))

# import environment variables from the login manager
systemctl --user import-environment
systemctl --user import-environment $new_env

# then start the service
systemctl --wait --user start sway.service
Expand Down

0 comments on commit e3d9b8b

Please sign in to comment.