summaryrefslogtreecommitdiff
path: root/firefox.sh.in
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2021-03-01 15:10:18 +0100
committerMartin Stransky <stransky@redhat.com>2021-03-01 15:10:18 +0100
commit818bcfb4818e8c739641a3e2c48e719f705b0e6c (patch)
treec9a5b549fe686c6dc9d4b3a528dab0df7af619cd /firefox.sh.in
parentAdded icecat-78.7.1-fix_error_template_with_C_linkage.patch to build on F34+ (diff)
downloadlibrewolf-fedora-ff-818bcfb4818e8c739641a3e2c48e719f705b0e6c.tar.gz
librewolf-fedora-ff-818bcfb4818e8c739641a3e2c48e719f705b0e6c.tar.bz2
librewolf-fedora-ff-818bcfb4818e8c739641a3e2c48e719f705b0e6c.zip
Enable Wayland backend when Wayland display is set
Diffstat (limited to 'firefox.sh.in')
-rw-r--r--firefox.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/firefox.sh.in b/firefox.sh.in
index a34f5da..f81f978 100644
--- a/firefox.sh.in
+++ b/firefox.sh.in
@@ -70,7 +70,7 @@ GETENFORCE_FILE="/usr/sbin/getenforce"
##
## Enable Wayland backend?
##
-if ! [ $MOZ_DISABLE_WAYLAND ]; then
+if ! [ $MOZ_DISABLE_WAYLAND ] && [ "$WAYLAND_DISPLAY" ]; then
if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ]; then
export MOZ_ENABLE_WAYLAND=1
fi
bgstack15