diff --git a/steamtinkerlaunch b/steamtinkerlaunch index 424a285d..5e8d6478 100755 --- a/steamtinkerlaunch +++ b/steamtinkerlaunch @@ -7,7 +7,7 @@ PREFIX="/usr" PROGNAME="SteamTinkerLaunch" NICEPROGNAME="Steam Tinker Launch" -PROGVERS="v14.0.20240726-2" +PROGVERS="v14.0.20240718-1 (use-mostrecent-loginuser-userdatadir)" PROGCMD="${0##*/}" PROGINTERNALPROTNAME="Proton-stl" SHOSTL="stl" @@ -24345,7 +24345,7 @@ function generateSteamShortID { function fillLoginUsersCSV { # Don't overwrite LoginUsersCSV file if it exists and is not blank, only re-create it if SHM dir is cleared # The loginusers are not likely to change after the SHM dir is created so this is a bit more efficient - if [ -f "$LOGINUSERSCSV" ] && [ -s "$LOGINUSERCSV" ]; then + if [ -f "$LOGINUSERSCSV" ] && [ -s "$LOGINUSERSCSV" ]; then writelog "INFO" "${FUNCNAME[0]} - '${LOGINUSERSCSV}' already exists -- Not re-creating" return fi @@ -24355,10 +24355,9 @@ function fillLoginUsersCSV { # Toplevel block in loginusers.vdf is "users", get all block names ("[0-9]+" with one hardcoded indent, because we know we only have 1 indent) # - # TODO it would be nice to have a generic function to get all toplevel VDF block names like this, but = + # TODO it would be nice to have a generic function to get all toplevel VDF block names like this, but # We can't know the pattern and would need to know how to differentiate between a blockname and a property name - # It just si happens for loginusers that it only contains blocks - LOGINUSERIDS=() + # It just so happens for loginusers that it only contains blocks if [ -f "${LOGUVDF}" ]; then writelog "INFO" "${FUNCNAME[0]} - Found loginusers file at '${LOGUVDF}' -- Will attempt to parse this file" mapfile -t LOGINUSERLONGIDS < <(getVdfSection '"users"' "" "" "${LOGUVDF}" | grep -oP '^\t"[0-9]+"' | tr -d '\t"\ ')