From 57f272c9bada069e7216fe1edb2fb1398a17eae1 Mon Sep 17 00:00:00 2001 From: Colin Date: Wed, 2 Aug 2023 08:23:14 +0000 Subject: [PATCH] sway: expose needed env vars to user dbus services (xdg-desktop-portal) --- hosts/modules/gui/sway/sway-config.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hosts/modules/gui/sway/sway-config.nix b/hosts/modules/gui/sway/sway-config.nix index 40b3b263..47f958f8 100644 --- a/hosts/modules/gui/sway/sway-config.nix +++ b/hosts/modules/gui/sway/sway-config.nix @@ -170,4 +170,13 @@ in '' pos 1920,0 res 1920x1080 } + + # XXX: needed for xdg-desktop-portal-* to work. + # this is how we expose these env vars to user dbus services: + # - DISPLAY + # - WAYLAND_DISPLAY + # - SWAYSOCK + # - XDG_CURRENT_DESKTOP + # for more, see: + include /etc/sway/config.d/* ''