sway: Add XCURSOR variables to systemd environment

This is required for systemd-activated GUI applications to display
the correct cursor theme and size.
This commit is contained in:
Alex Palaistras 2024-01-21 16:00:49 +00:00
parent 6e622248d6
commit 63736e1c3a
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# Ensure systemd environment is consistent.
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP XDG_SESSION_TYPE
exec hash dbus-update-activation-environment 2>/dev/null && dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP XDG_SESSION_TYPE
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP XDG_SESSION_TYPE XCURSOR_THEME XCURSOR_SIZE
exec hash dbus-update-activation-environment 2>/dev/null && dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP XDG_SESSION_TYPE XCURSOR_THEME XCURSOR_SIZE
exec systemctl --user start sway-session.target