sway: Fix import of environment variables

See https://wiki.archlinux.org/title/Sway#Manage_Sway-specific_daemons_with_systemd.
This commit is contained in:
Sanchayan Maity 2021-10-22 12:49:36 +05:30
parent 7a7ca81537
commit db9f8c8f58
2 changed files with 3 additions and 1 deletions

View file

@ -1,2 +1,3 @@
XDG_CURRENT_DESKTOP="sway" XDG_CURRENT_DESKTOP="sway"
MOZ_ENABLE_WAYLAND=1 MOZ_ENABLE_WAYLAND=1
GTK_USE_PORTAL=0

View file

@ -270,4 +270,5 @@ assign [app_id="gst-launch-1.0"] 4
# Call kanshi to automatically configure connected display outputs # Call kanshi to automatically configure connected display outputs
# exec kanshi # exec kanshi
# Load environment variables # Load environment variables
exec "systemctl --user import-environment" exec systemctl --user import-environment XDG_CURRENT_DESKTOP MOZ_ENABLE_WAYLAND GTK_USE_PORTAL
include /etc/sway/config.d/*