From 695751e81ce31798d5bd70b1bb98e9280dc51ce2 Mon Sep 17 00:00:00 2001 From: Eamonn Rea Date: Sat, 23 Mar 2024 01:45:25 +0000 Subject: [PATCH] extProtonRun: Use 'printf "%q"' when parsing RUNPROGARGS May help with paths that use backslashes. --- steamtinkerlaunch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/steamtinkerlaunch b/steamtinkerlaunch index 0006b8d2..84dbcd7a 100755 --- a/steamtinkerlaunch +++ b/steamtinkerlaunch @@ -7,7 +7,7 @@ PREFIX="/usr" PROGNAME="SteamTinkerLaunch" NICEPROGNAME="Steam Tinker Launch" -PROGVERS="v14.0.20240323-1" +PROGVERS="v14.0.20240323-1 (extProtonRun-printf-q)" PROGCMD="${0##*/}" PROGINTERNALPROTNAME="Proton-stl" SHOSTL="stl" @@ -7079,7 +7079,7 @@ function extProtonRun { if [ -z "$PROGARGS" ] || [ "$PROGARGS" == "$NON" ]; then RUNPROGARGS="" else - mapfile -d " " -t -O "${#RUNPROGARGS[@]}" RUNPROGARGS < <(printf '%s' "$PROGARGS") + mapfile -d " " -t -O "${#RUNPROGARGS[@]}" RUNPROGARGS < <(printf '%q' "$PROGARGS") fi FWAIT=2