From d287e283985575fee808eed2a772cbaef9822a93 Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Mon, 1 Jan 2024 15:22:39 -0800 Subject: [PATCH] chore: Additionally check that one of the GPUs is Nvidia for hybrid systems --- system_files/desktop/shared/usr/bin/bazzite-flatpak-manager | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system_files/desktop/shared/usr/bin/bazzite-flatpak-manager b/system_files/desktop/shared/usr/bin/bazzite-flatpak-manager index 2972c766..45faabb3 100755 --- a/system_files/desktop/shared/usr/bin/bazzite-flatpak-manager +++ b/system_files/desktop/shared/usr/bin/bazzite-flatpak-manager @@ -46,7 +46,7 @@ flatpak override \ org.mozilla.firefox # Params needed for HW accelerated video on Nvidia (Ignoring hybrid systems) -if [[ $IMAGE_FLAVOR =~ "nvidia" ]] && [ $(grep -o "\-display" <<< $(lshw -C display) | wc -l) -le 1 ]; then +if [[ $IMAGE_FLAVOR =~ "nvidia" ]] && [ $(grep -o "\-display" <<< $(lshw -C display) | wc -l) -le 1 ] && grep -q "vendor: NVIDIA Corporation" <<< $(lshw -C display); then flatpak override \ --system \ --filesystem=host-os \