summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config11
1 files changed, 10 insertions, 1 deletions
diff --git a/config b/config
index 239bf86..1341d27 100644
--- a/config
+++ b/config
@@ -7,7 +7,16 @@
# Environment Fixes
#exec export SWAYSOCK="$(ls /run/user/1000/sway-ipc.* | head -n 1)"
-exec dbus-update-activation-environment WAYLAND_DISPLAY DISPLAY XDG_CURRENT_DESKTOP=sway SWAYSOCK I3SOCK XCURSOR_SIZE XCURSOR_THEME
+
+# If you are using a dbus-run-session wrapper to launch Sway, you will also
+# need to set D-Bus variables in order for the portal and for screensharing
+# features to work; add the following line to the beginning of Sway's config
+# file:
+exec dbus-update-activation-environment \
+ WAYLAND_DISPLAY DISPLAY \
+ XDG_CURRENT_DESKTOP=sway \
+ SWAYSOCK I3SOCK \
+ XCURSOR_SIZE XCURSOR_THEME
# Variables
set $mod Mod4