2022-11-14 01:58:24 +11:00
|
|
|
# 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.
|
|
|
|
|
2023-11-27 12:57:41 +11:00
|
|
|
# Upstream refuses to set XDG_CURRENT_DESKTOP so we have to.
|
|
|
|
exec systemctl --user set-environment XDG_CURRENT_DESKTOP=sway
|
|
|
|
exec systemctl --user import-environment DISPLAY \
|
|
|
|
SWAYSOCK \
|
|
|
|
WAYLAND_DISPLAY \
|
|
|
|
XDG_CURRENT_DESKTOP
|
|
|
|
|
2022-11-14 01:58:24 +11:00
|
|
|
exec hash dbus-update-activation-environment 2>/dev/null && \
|
2023-11-27 12:57:41 +11:00
|
|
|
dbus-update-activation-environment --systemd DISPLAY \
|
|
|
|
SWAYSOCK \
|
|
|
|
XDG_CURRENT_DESKTOP=sway \
|
|
|
|
WAYLAND_DISPLAY
|