MozillaFirefox/mozilla.sh.in
branchfirefox88
changeset 1157 57fc0524b50c
parent 1138 4ac678bd2a26
child 1163 849d6343405b
--- a/MozillaFirefox/mozilla.sh.in	Sat Mar 27 21:45:50 2021 +0100
+++ b/MozillaFirefox/mozilla.sh.in	Sat May 29 22:52:13 2021 +0200
@@ -84,8 +84,11 @@
 export GNOME_DISABLE_CRASH_DIALOG=1
 
 # Wayland
+# Only supported on newer systems
+WAYLAND_SUPPORTED=%WAYLAND_SUPPORTED
+
 # $XDG_SESSION_TYPE should contain either x11 or wayland
-if [ "$XDG_SESSION_TYPE" = "wayland" ]; then
+if [ $WAYLAND_SUPPORTED -eq 1 ] && [ "$XDG_SESSION_TYPE" = "wayland" ]; then
   export MOZ_ENABLE_WAYLAND=1
 fi