Skip to content

Commit

Permalink
GameScope: Remove trailing whitespace from GAMESCOPE_ARGS string
Browse files Browse the repository at this point in the history
Now that GAMESCOPE_ARGS is not guaranteed to have any values,
GAMESCOPE_ARGS can be blank when appending flags, so we should
remove trailing whitespaces.

This should be purely cosmetic.
  • Loading branch information
sonic2kk committed Aug 31, 2024
1 parent 03749b9 commit 3cde0b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions steamtinkerlaunch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
PREFIX="/usr"
PROGNAME="SteamTinkerLaunch"
NICEPROGNAME="Steam Tinker Launch"
PROGVERS="v14.0.20240829-3 (gamescope-use-getgamescopearg-for-gsshwres-gsintres)"
PROGVERS="v14.0.20240831-1 (gamescope-use-getgamescopearg-for-gsshwres-gsintres)"
PROGCMD="${0##*/}"
PROGINTERNALPROTNAME="Proton-stl"
SHOSTL="stl"
Expand Down Expand Up @@ -11985,7 +11985,8 @@ function GameScopeGui {
if [ "$GSHDLS" == "TRUE" ] ; then GAMESCOPE_ARGS="${GAMESCOPE_ARGS} --headless"; fi
### ADVANCED OPTIONS END ###

GAMESCOPE_ARGS="${GAMESCOPE_ARGS} --"
# Remove trailing whitespace and append '--'
GAMESCOPE_ARGS="${GAMESCOPE_ARGS# } --"

writelog "INFO" "${FUNCNAME[0]} - Saving configured GAMESCOPE_ARGS '$GAMESCOPE_ARGS' into '$STLGAMECFG'"
touch "$FUPDATE"
Expand Down

0 comments on commit 3cde0b2

Please sign in to comment.