From 4cc258ef1fbdfbb88d1ccb54b22f081ccfe3fb89 Mon Sep 17 00:00:00 2001 From: xlulx <92148312+xlulx@users.noreply.github.com> Date: Fri, 27 Nov 2026 16:05:25 +0300 Subject: [PATCH] fix(bionic): give each launch its own temporary file for the registry and drive rewrites (cherry picked from commit 9738afa692e5e5b8aa05fd53bde7a080b92edfe1) --- tools/bionic-runtime/tool/launch.sh | 2 +- tools/bionic-runtime/tool/proton | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/bionic-runtime/tool/launch.sh b/tools/bionic-runtime/tool/launch.sh index 45f6137b68..8e52a857da 100644 --- a/tools/bionic-runtime/tool/launch.sh +++ b/tools/bionic-runtime/tool/launch.sh @@ -319,7 +319,7 @@ steam_pid() { awk '/^\[/ { on = index($0, "[Software\\\\Valve\\\\Steam\\\\ActiveProcess]") == 1 } on && /^"PID"=dword:/ && $0 != "\"PID\"=dword:0000fffe" { found = 1 } END { exit !found }' "$R" || return 0 awk '/^\[/ { on = index($0, "[Software\\\\Valve\\\\Steam\\\\ActiveProcess]") == 1 } - on && /^"PID"=dword:/ { print "\"PID\"=dword:0000fffe"; next } { print }' "$R" > "$R.dd-new" && mv -f "$R.dd-new" "$R" && + on && /^"PID"=dword:/ { print "\"PID\"=dword:0000fffe"; next } { print }' "$R" > "$R.dd-new.$$" && mv -f "$R.dd-new.$$" "$R" && echo "$(date +%H:%M:%S) Steam's process ID in the registry set to this tool's" } prefix_busy || steam_pid diff --git a/tools/bionic-runtime/tool/proton b/tools/bionic-runtime/tool/proton index dfd20be2f9..a054905b2f 100644 --- a/tools/bionic-runtime/tool/proton +++ b/tools/bionic-runtime/tool/proton @@ -47,7 +47,7 @@ android_drives() { case "$t" in /*) ;; *) continue ;; esac a=$(real "$t") [ "$a" = "$t" ] && continue - ln -sfn "$a" "$d.dd-new" && mv -fT "$d.dd-new" "$d" && echo "drive ${d##*/} -> $a" + ln -sfn "$a" "$d.dd-new.$$" && mv -fT "$d.dd-new.$$" "$d" && echo "drive ${d##*/} -> $a" done }