From dd62cae62ef2aeef8857f75fe062c6925a14e6b2 Mon Sep 17 00:00:00 2001 From: The412Banner Date: Sat, 26 Sep 2026 00:28:49 -0400 Subject: [PATCH] Proton wrappers: run the components check only for a real game launch (waitforexitandrun, non-zero app id) With the check reached from the client's own runs right after login, the Steam client segfaulted within seconds, four sessions out of four; the same build without the check (test/bisect-no-launch-check) and the last build before it both reach Big Picture. Now every run that is not a game launch - the client's probes, app id 0 - is left exactly as before. Each check logs one line. --- .../overlay/usr/local/bin/bannerlator-steam-compat | 8 ++++++++ 1 file changed, 8 insertions(+) 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"