From 900e079d9d0fb590d5b65bf5e764467bff93cde3 Mon Sep 17 00:00:00 2001 From: Eamonn Rea Date: Wed, 12 Jun 2024 20:53:38 +0100 Subject: [PATCH] Logging: Add more log paths to Game Files menu * Current log at /dev/shm/steamtinkerlaunch/steamtinkerlaunch.log * Current temp dir at /dev/shm/steamtinkerlaunch (to view other log files, not just steamtinkerlaunch.log) * Per-game log folder at LOGDIR (by default, STLCFGDIR/logs/steamtinkerlaunch) --- lang/english.txt | 3 +++ steamtinkerlaunch | 20 +++++++++++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/lang/english.txt b/lang/english.txt index 85e6abe1..4b2bf55f 100644 --- a/lang/english.txt +++ b/lang/english.txt @@ -1283,3 +1283,6 @@ GUI_IGNORECOMPATSLR="Ignore Native Linux Steam Linux Runtime from Compatibility DESC_IGNORECOMPATSLR="ignore Steam Linux Runtime for native games selected either by you or by Valve Testing as a Compatibility Tool and let SteamTinkerLaunch find it instead. For example, ignore Steam Linux Runtime 3.0 selected by Valve Testing and let SteamTinkerLaunch find and use Steam Linux Runtime 1.0 instead. This can have MAJOR impacts on compatibility, and has NO EFFECT for games using Proton" GUI_VORTEXDEVICESCALEFACTOR="Vortex GUI Scale Factor" DESC_VORTEXDEVICESCALEFACTOR="uses the --device-scale-factor flag to set the Vortex GUI scale. Defaults to 1.0, but if you want a larger GUI you can set it to match your display's scale factor (or the largest scale factor, if using multiple across displays)" +GUI_STLSHMLOG="Current SteamTinkerLaunch log file" +GUI_STLSHMDIR="Current session logging directory" +GUI_STLPERGAMELOGSDIR="Per-game log files" diff --git a/steamtinkerlaunch b/steamtinkerlaunch index d28365d5..bc8d95cb 100755 --- a/steamtinkerlaunch +++ b/steamtinkerlaunch @@ -7,7 +7,7 @@ PREFIX="/usr" PROGNAME="SteamTinkerLaunch" NICEPROGNAME="Steam Tinker Launch" -PROGVERS="v14.0.20240612-1 (logging-access-improvements)" +PROGVERS="v14.0.20240612-3 (logging-access-improvements)" PROGCMD="${0##*/}" PROGINTERNALPROTNAME="Proton-stl" SHOSTL="stl" @@ -12956,6 +12956,24 @@ function setGameFilesArray { GamFiles+=("$MAHUCID/${AID}.conf") fi + # Open /dev/shm/steamtinkerlaunch directory + if [ -d "$STLSHM" ]; then + GamDesc+=("$GUI_STLSHMDIR") + GamFiles+=("$STLSHM") + fi + + # Open logfile at /dev/shm/steamtinkerlaunch/steamtinkerlaunch.log + if [ -f "$TEMPLOG" ]; then + GamDesc+=("$GUI_STLSHMLOG") + GamFiles+=("$TEMPLOG") + fi + + # Open game logging directory at, by default, STLCFGDIR/logs/steamtinkerlaunch + if [ -d "$LOGDIR" ]; then + GamDesc+=("$GUI_STLPERGAMELOGSDIR") + GamFiles+=("$LOGDIR") + fi + createCustomCfgs GamDesc+=("$GUI_STLCVFILE")