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