Skip to content

Commit

Permalink
feat(nvidia): Disable Wayland on Firefox until fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Jun 25, 2024
1 parent 453f554 commit c0d138f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/bash

# SCRIPT VERSION
VER=23
VER=24
VER_FILE="/etc/bazzite/flatpak_manager_version"
VER_RAN=$(cat $VER_FILE)
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
Expand Down Expand Up @@ -65,6 +65,7 @@ if [[ $IMAGE_FLAVOR =~ "nvidia" ]] && [ $(grep -o "\-display" <<< $(lshw -C disp
--env=LIBVA_MESSAGING_LEVEL=1 \
--env=MOZ_DISABLE_RDD_SANDBOX=1 \
--env=NVD_BACKEND=direct \
--env=MOZ_ENABLE_WAYLAND=0 \
org.mozilla.firefox
else
# Undo if user was previously using a Nvidia image and is no longer
Expand All @@ -76,6 +77,7 @@ else
--unset-env=LIBVA_MESSAGING_LEVEL \
--unset-env=MOZ_DISABLE_RDD_SANDBOX \
--unset-env=NVD_BACKEND \
--unset-env=MOZ_ENABLE_WAYLAND \
org.mozilla.firefox
fi

Expand Down

0 comments on commit c0d138f

Please sign in to comment.