From bca2fb3eb5cf3364b6ba00b85b209e3738407939 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sat, 15 Oct 2022 17:05:55 +0300 Subject: [PATCH] bash/usr-local-bin/startsway: we are running sway, not Unity Apparently this isn't necessary since 2020 https://github.com/Alexays/Waybar/issues/21#issuecomment-635283506 --- bash/usr-local-bin/startsway | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/bash/usr-local-bin/startsway b/bash/usr-local-bin/startsway index 1ccac06..c335a46 100755 --- a/bash/usr-local-bin/startsway +++ b/bash/usr-local-bin/startsway @@ -5,6 +5,15 @@ set -x +# As this script is kind of login manager and upstream wants to externalize +# the task of telling Sway is used to it, https://github.com/swaywm/sway/pull/4876#issuecomment-570790128 +# This seems to be required by Firefox and many others. +# Don't listen to Wayber claiming this should be "Unity" +export XDG_CURRENT_DESKTOP=sway +# https://github.com/flameshot-org/flameshot/blob/master/docs/Sway%20and%20wlroots%20support.md +# mentions this +export XDG_SESSION_DESKTOP=sway + # Using fcitx export XMODIFIERS=@im=fcitx export GTK_IM_MODULE="fcitx" @@ -21,8 +30,5 @@ export SDL_VIDEODRIVER=wayland # Mozilla Products export MOZ_ENABLE_WAYLAND=1 -# Waybar states: [warning] For a functional tray you must have libappindicator-* installed and export XDG_CURRENT_DESKTOP=Unity -export XDG_CURRENT_DESKTOP=Unity - dbus-launch --exit-with-session sway --unsupported-gpu $@ set +x