From 108fe3a47c208f436f649de1eaa0e002921daaab Mon Sep 17 00:00:00 2001 From: fhoekstra <32362869+fhoekstra@users.noreply.github.com> Date: Tue, 14 Nov 2023 21:05:32 +0100 Subject: [PATCH] Fix screen-sharing for Firefox & Chromium As per points 1 and 2 in https://github.com/alebastr/sway-systemd/blob/0fdb2c4b10beb6079acd6073c5b3014bd58d3b74/src/session.sh Discussion of why this is not in Sway is here: https://github.com/swaywm/sway/pull/4876#issuecomment-570790128 --- .config/sway/config | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/sway/config b/.config/sway/config index 5dc6ec9..a20d095 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -5,6 +5,10 @@ exec ~/set_once.sh # # Read `man 5 sway` for a complete reference. +# announce a running sway session to systemd +exec systemctl --user import-environment XDG_SESSION_TYPE XDG_CURRENT_DESKTOP +exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway + # user config directory include $HOME/.config/sway/config.d/*