From 85ed0e903c4349da51356ccb8c828e939c78db5d Mon Sep 17 00:00:00 2001 From: Martin Stransky Date: Sat, 30 Jan 2021 16:01:39 +0100 Subject: Enable Wayland backend on Fedora 34/KDE/Plasma (and other compositors) by default. --- firefox.sh.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'firefox.sh.in') diff --git a/firefox.sh.in b/firefox.sh.in index 6fc51b2..ca121a0 100644 --- a/firefox.sh.in +++ b/firefox.sh.in @@ -70,10 +70,13 @@ GETENFORCE_FILE="/usr/sbin/getenforce" ## ## Enable Wayland backend? ## -if __DEFAULT_WAYLAND__ && ! [ $MOZ_DISABLE_WAYLAND ]; then +if ! [ $MOZ_DISABLE_WAYLAND ]; then if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ]; then export MOZ_ENABLE_WAYLAND=1 fi + if __DEFAULT_WAYLAND__ && [ "$XDG_SESSION_TYPE" = "wayland" ]; then + export MOZ_ENABLE_WAYLAND=1 + fi fi ## -- cgit