chore: Additionally check that one of the GPUs is Nvidia for hybrid systems

This commit is contained in:
Kyle Gospodnetich 2024-01-01 15:22:39 -08:00
parent feba9802f7
commit d287e28398

View File

@ -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 \