From f09d8cbf12a56834081f54df5e18b8a5221474ec Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Mon, 1 Jan 2024 21:17:56 -0500 Subject: Set XDG_CURRENT_DESKTOP=sway in sway --- dot_config/sway/config.d/50_systemd-user.conf | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 dot_config/sway/config.d/50_systemd-user.conf diff --git a/dot_config/sway/config.d/50_systemd-user.conf b/dot_config/sway/config.d/50_systemd-user.conf new file mode 100644 index 0000000..36652e7 --- /dev/null +++ b/dot_config/sway/config.d/50_systemd-user.conf @@ -0,0 +1,6 @@ +# XDG_CURRENT_DESKTOP=sway is needed for screen sharing via xdg-desktop-portal +# to work. Taken from: +# https://github.com/emersion/xdg-desktop-portal-wlr/issues/193#issuecomment-1177369572 + +exec hash dbus-update-activation-environment 2>/dev/null && \ + dbus-update-activation-environment --systemd XDG_CURRENT_DESKTOP=sway -- cgit v1.2.3