mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-18 12:28:40 +00:00
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.
This commit is contained in:
1 parent
f092391a39
commit
dd62cae62e
1 file changed
+8
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user