Skip to content

Commit

Permalink
fix: Correct issue with Steam refusing to launch on some multi-gpu ha…
Browse files Browse the repository at this point in the history
…rdware when launched on the dGPU.
  • Loading branch information
KyleGospo committed Apr 26, 2024
1 parent 0ab537c commit 0c1a55c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions system_files/desktop/shared/usr/bin/bazzite-steam
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ if [[ $IMAGE_NAME =~ "deck" || $IMAGE_NAME =~ "ally" || $IMAGE_NAME =~ "framegam
if [ -f $HOME/.local/share/Steam/ubuntu12_32/steamui.so ]; then
LAUNCH_OPTIONS="-steamdeck"
fi
elif [[ $(switcherooctl list | grep -o 'Device:' | wc -l) > 1 ]]; then
# If we're running this on a dGPU, disable accelerated cef
LAUNCH_OPTIONS="-cef-disable-gpu"
fi

if [[ "$XDG_SESSION_TYPE" == "wayland" ]]; then
Expand Down

0 comments on commit 0c1a55c

Please sign in to comment.