Skip to content

Free fork of NotProton: Windows Steam games in Mac Steam, on CodeWeavers' Wine and Apple's Game Porting Toolkit

fix(scripts): find the game's process when it runs from its launcher bundle (#2787)

Raymond Chinfb890a566ad6
diff --git a/scripts/np-test-game.sh b/scripts/np-test-game.sh
index c211df4..e0a4d7e 100755
--- a/scripts/np-test-game.sh
+++ b/scripts/np-test-game.sh
@@ -113,7 +113,7 @@ ps_game() { # print ps lines belonging to the game's wine exe
[ -s "$PATS" ] || return 1
ps -axww -o pid=,command= 2>/dev/null \
| grep -iFf "$PATS" \
- | grep -i 'wine' \
+ | grep -iE '[[:space:]][A-Z]:\\|wine' \
| grep -Ev 'waitforexitandrun|/bin/sh -c|np-test-game|grep ' || true
}
wine_procs() { ps -axww -o pid=,command= 2>/dev/null | grep -Ei 'wineserver|wine-preloader|/wine(64)? ' | grep -v grep || true; }