protonscr

steamwebhelper.sh should respect the STEAM_CLIENT_LOG_FOLDER environment variable

steamopen Steam clientWeb Component
ValveSoftware/steam-for-linux#9345 · opened 2023-04-16 by davidebeatrici · updated 2023-05-06 · 1 comments · github
Ddavidebeatrici 2023-04-16 github

Current:

exec ${in_container[0]+"${in_container[@]}"} ${in_runtime[0]+"${in_runtime[@]}"} "${DIR}/steamwebhelper" "$@" &> ~/.steam/steam/logs/steamwebhelper.log

Suggested:

exec ${in_container[0]+"${in_container[@]}"} ${in_runtime[0]+"${in_runtime[@]}"} "${DIR}/steamwebhelper" "$@" &> "${STEAM_CLIENT_LOG_FOLDER}/steamwebhelper.log"

If the environment variable is not set, you could either:

  • Set a fallback value.
  • Don't write the log file.

Related: #1890

Bbrain-anti-freeze 2023-05-06 github

Maybe even

exec ${in_container[0]+"${in_container[@]}"} ${in_runtime[0]+"${in_runtime[@]}"} "${DIR}/steamwebhelper" "$@" &> "${STEAM_CLIENT_LOG_FOLDER:-~/.steam/steam/logs}/steamwebhelper.log"

Nothing extracted yet.