aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dot_config/sway/config.d/50_systemd-user.conf6
1 files changed, 6 insertions, 0 deletions
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