mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-01 17:32:18 +00:00
c070e5a72c
(cherry picked from commit cf2a77ea81)
Signed-off-by: Owen-sz <owen@fyralabs.com>
Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
17 lines
847 B
Plaintext
17 lines
847 B
Plaintext
# sway does not set DISPLAY/WAYLAND_DISPLAY in the systemd user environment
|
|
# See FS#63021
|
|
# Adapted from xorg's 50-systemd-user.sh, which achieves a similar goal.
|
|
|
|
# Upstream refuses to set XDG_CURRENT_DESKTOP so we have to.
|
|
exec systemctl --user set-environment XDG_CURRENT_DESKTOP=scroll
|
|
exec systemctl --user import-environment DISPLAY \
|
|
SCROLLSOCK \
|
|
WAYLAND_DISPLAY \
|
|
XDG_CURRENT_DESKTOP
|
|
|
|
exec hash dbus-update-activation-environment 2>/dev/null && \
|
|
dbus-update-activation-environment --systemd DISPLAY \
|
|
SCROLLSOCK \
|
|
XDG_CURRENT_DESKTOP=scroll \
|
|
WAYLAND_DISPLAY
|