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
This commit is contained in:
Aminda Suomalainen 2022-10-15 17:05:55 +03:00
parent b5ad053a4c
commit bca2fb3eb5
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
1 changed files with 9 additions and 3 deletions

View File

@ -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