diff --git a/tools/linuxfs/overlay/usr/local/bin/bannerlator-steam-compat b/tools/linuxfs/overlay/usr/local/bin/bannerlator-steam-compat index 05a705dfbb..d74c6174d6 100755 --- a/tools/linuxfs/overlay/usr/local/bin/bannerlator-steam-compat +++ b/tools/linuxfs/overlay/usr/local/bin/bannerlator-steam-compat @@ -88,6 +88,13 @@ bl_components() { base=$1 cm_dir="${HOME:-/root}/.local/share/bannerlator-components" cm_list="$cm_dir/desired.tsv" + # A real game launch only: the verb the client starts a game with and a non-zero app id. Every + # other run - above all the client's own probes right after login, app id 0 - is left exactly as + # it was: with this check running through them, the client segfaulted (rc 139) within seconds of + # starting its probes, four sessions out of four. + [ "${verb:-}" = waitforexitandrun ] || return 0 + cm_app="${STEAM_COMPAT_APP_ID:-${SteamAppId:-0}}" + case "$cm_app" in ''|0) return 0 ;; esac [ -f "$cm_list" ] || return 0 case "${STEAM_COMPAT_DATA_PATH:-}" in */compatdata/0|*/compatdata/0/|*/compatdata/0-*) return 0 ;; esac cm_tool=${base##*/} @@ -108,6 +115,7 @@ bl_components() { case "$rel" in *.so) chmod 755 "$f" ;; *) chmod 644 "$f" ;; esac cm_fixed=$((cm_fixed + 1)) done < "$cm_list" + [ "$cm_checked" -gt 0 ] && echo "bannerlator-proton: components: checked $cm_checked file(s) in $cm_tool for app $cm_app" >&2 if [ "$cm_fixed" -gt 0 ]; then echo "bannerlator-proton: components: re-applied $cm_fixed of $cm_checked file(s) in $cm_tool before this launch" >&2 printf '%s\\t%s\\t%s\\n' "$(date +%s)" "$cm_tool" "$cm_fixed" >> "$cm_dir/reapplied.log"