Skip to content

Commit

Permalink
Add Non-Steam Game: Fix StartDir when using GUI (#942)
Browse files Browse the repository at this point in the history
  • Loading branch information
sonic2kk authored Oct 18, 2023
1 parent b0ef25c commit 4af3344
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions steamtinkerlaunch
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
PREFIX="/usr"
PROGNAME="SteamTinkerLaunch"
NICEPROGNAME="Steam Tinker Launch"
PROGVERS="v14.0.20231019-1"
PROGVERS="v14.0.20231019-2"
PROGCMD="${0##*/}"
PROGINTERNALPROTNAME="Proton-stl"
SHOSTL="stl"
Expand Down Expand Up @@ -23298,10 +23298,16 @@ function addNonSteamGame {
NOSTAPPNAME="${i#*=}"
shift ;;
-ep=*|--exepath=*)
QEP="${i#*=}"; NOSTEXEPATH="\"$QEP\""
QEP="${i#*=}";
if [ -n "$QEP" ]; then
NOSTEXEPATH="\"$QEP\""
fi
shift ;;
-sd=*|--startdir=*)
QSD="${i#*=}"; NOSTSTDIR="\"$QSD\""
QSD="${i#*=}"
if [ -n "$QSD" ] && [ -d "$QSD" ]; then
NOSTSTDIR="\"$QSD\""
fi
shift ;;
-ip=*|--iconpath=*)
NOSTICONPATH="${i#*=}"
Expand Down Expand Up @@ -23397,7 +23403,7 @@ function addNonSteamGame {
NOSTAPPNAME="${QEP##*/}"
fi

if [ -z "${NOSTSTDIR}" ]; then
if [ -z "${NOSTSTDIR}" ] || [ ! -d "${NOSTSTDIR}" ]; then
QSD="$(dirname "$QEP")"; NOSTSTDIR="\"$QSD\""
fi

Expand Down

0 comments on commit 4af3344

Please sign in to comment.