From 3cde0b26f4ee3683c1e3e58c093cbb384a1f66c8 Mon Sep 17 00:00:00 2001 From: Eamonn Rea Date: Sat, 31 Aug 2024 04:37:19 +0100 Subject: [PATCH] GameScope: Remove trailing whitespace from GAMESCOPE_ARGS string 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. --- steamtinkerlaunch | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/steamtinkerlaunch b/steamtinkerlaunch index c93c5934..95c7e76d 100755 --- a/steamtinkerlaunch +++ b/steamtinkerlaunch @@ -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" @@ -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"