summaryrefslogtreecommitdiff
path: root/firefox.sh.in
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2021-01-30 16:01:39 +0100
committerMartin Stransky <stransky@redhat.com>2021-01-30 16:01:39 +0100
commit85ed0e903c4349da51356ccb8c828e939c78db5d (patch)
tree7f21bc4469349c0806a561a2282cfa14d7f96c81 /firefox.sh.in
parentARM / Rawhide PGO updates to produce rahide build (diff)
downloadlibrewolf-fedora-ff-85ed0e903c4349da51356ccb8c828e939c78db5d.tar.gz
librewolf-fedora-ff-85ed0e903c4349da51356ccb8c828e939c78db5d.tar.bz2
librewolf-fedora-ff-85ed0e903c4349da51356ccb8c828e939c78db5d.zip
Enable Wayland backend on Fedora 34/KDE/Plasma (and other compositors) by default.
Diffstat (limited to 'firefox.sh.in')
-rw-r--r--firefox.sh.in5
1 files changed, 4 insertions, 1 deletions
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
##
bgstack15