mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-03-14 10:21:09 +00:00
feat(bazzite-steam): Cleanup no longer needed workarounds (#2323)
* chore(bazzite-steam): Remove blank Steam window workaround See commit 0c1a55c629c3a12bd42818f3a487f897a9d6115f * chore(bazzite-steam): Remove comment leftover * chore(bazzite-steam): Remove Steam download speed fix See commit 373a73da8232589cb7cf57d4e0fd5764d67d5142
This commit is contained in:
parent
a1c71a946a
commit
bd06863d38
@ -82,25 +82,9 @@ if [[ $IMAGE_NAME =~ "deck" || $IMAGE_NAME =~ "ally" ]]; then
|
||||
fi
|
||||
|
||||
elif [ -f $HOME/.local/share/Steam/ubuntu12_32/steamui.so ]; then
|
||||
# Make sure Steam has been successfully started at least once. This is needed for desktop images that don't use a bootstrap archive
|
||||
|
||||
# Apply Steam Download Speed Fix if not already applied
|
||||
if [ ! -f $HOME/.local/share/Steam/steam_dev.cfg ]; then
|
||||
bash -c 'printf "@nClientDownloadEnableHTTP2PlatformLinux 0\n@fDownloadRateImprovementToAddAnotherConnection 1.0\n" > $HOME/.local/share/Steam/steam_dev.cfg'
|
||||
fi
|
||||
:
|
||||
fi
|
||||
|
||||
switcheroo_state="$(switcherooctl list)"
|
||||
DGPU_OPTION=""
|
||||
# If we're running this on a dGPU in a multi-gpu AMD/Intel system, apply a workaround for the blank Steam window bug
|
||||
if [[ $(echo "${switcheroo_state}" | grep -o 'Device:' | wc -l) -gt 1 ]]; then
|
||||
# TODO: Check if -system-composer is needed with nvidia >=555 driver
|
||||
if ! grep -Pq 'Name:\s+NVIDIA' <<< "$switcheroo_state"; then
|
||||
DGPU_OPTION="-system-composer"
|
||||
fi
|
||||
fi
|
||||
unset -v switcheroo_state
|
||||
|
||||
if [[ "$XDG_SESSION_TYPE" == "wayland" ]]; then
|
||||
# https://github.com/Supreeeme/extest
|
||||
# Extest is a drop in replacement for the X11 XTEST extension.
|
||||
@ -110,5 +94,5 @@ if [[ "$XDG_SESSION_TYPE" == "wayland" ]]; then
|
||||
# Also supports Steam Input as a whole.
|
||||
env LD_PRELOAD=/usr/lib/extest/libextest.so /usr/bin/steam "$DECK_OPTION" "$DGPU_OPTION" "$@"
|
||||
else
|
||||
/usr/bin/steam "$DECK_OPTION" "$DGPU_OPTION" "$@"
|
||||
/usr/bin/steam "$DECK_OPTION" "$@"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user