Skip to content

Commit

Permalink
Merge pull request #81 from HikariKnight/fix-if-condition
Browse files Browse the repository at this point in the history
fix: correctly run check for sdl/legacy cards
  • Loading branch information
KyleGospo committed Jul 31, 2024
1 parent b4a4d9f commit 8e46bd1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions usr/share/gamescope-session-plus/gamescope-session-plus
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8e46bd1

Please sign in to comment.