From 03aa8e97c4e395ac700c5dc06a12483e94b72d03 Mon Sep 17 00:00:00 2001 From: Olli Date: Sun, 22 Feb 2026 12:07:08 +0100 Subject: [PATCH] sway: Set DBus wayland and desktop environment variables --- sway/config | 1 + sway/yuki | 3 +++ 2 files changed, 4 insertions(+) diff --git a/sway/config b/sway/config index d74dc4b..50292db 100644 --- a/sway/config +++ b/sway/config @@ -156,6 +156,7 @@ bindcode $mod+Shift+55 mode "$mode_system" # Systemd environment exec "systemctl --user import-environment; systemctl --user start sway-session.target" +exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway # Input configuration input type:keyboard { diff --git a/sway/yuki b/sway/yuki index db15906..a6d5ad6 100644 --- a/sway/yuki +++ b/sway/yuki @@ -37,3 +37,6 @@ bindcode $mod+Shift+40 mode "$mode_audio" # Window rules floating_maximum_size 1024 x 768 + + +exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK