From 8e46bd1988ff6355068767db88cac9ad7ecf57e7 Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Wed, 31 Jul 2024 08:15:08 -0700 Subject: [PATCH] Merge pull request #81 from HikariKnight/fix-if-condition fix: correctly run check for sdl/legacy cards --- usr/share/gamescope-session-plus/gamescope-session-plus | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usr/share/gamescope-session-plus/gamescope-session-plus b/usr/share/gamescope-session-plus/gamescope-session-plus index 9adc012..3964c54 100755 --- a/usr/share/gamescope-session-plus/gamescope-session-plus +++ b/usr/share/gamescope-session-plus/gamescope-session-plus @@ -20,14 +20,13 @@ post_gamescope_start() { get_gamescope_binary() { if [ -n "$GAMESCOPE_BIN" ]; then echo $GAMESCOPE_BIN - elif [ -f /usr/libexec/gamescope-sdl-workaround ] && command -v /usr/bin/gamescope-legacy > /dev/null; then + elif /usr/libexec/gamescope-sdl-workaround && command -v /usr/bin/gamescope-legacy > /dev/null; then # GPUs that require the SDL backend echo "/usr/bin/gamescope-legacy" else echo "/usr/bin/gamescope" fi } - gamescope_has_option() { if ($(get_gamescope_binary) --help 2>&1 | grep -e "$1" > /dev/null); then return 0