Run Windows games on Apple Silicon — free, open source, with an open compatibility database that tells you what actually works.
Swift apple-silicond3dmetaldxmtdxvkfexgame-porting-toolkitgamingmac-gamingmacosmetalmoltenvksteamswiftuivkd3d-protonwhisky-alternativewindows-gameswinewine-wrapper
smokes: say "Accessibility is denied" instead of "no window" when that is what it is
Gauthier Piarrettec371803ab829
diff --git a/Scripts/launch-window-smoke.sh b/Scripts/launch-window-smoke.shindex 9c4336b..d1f7446 100755--- a/Scripts/launch-window-smoke.sh+++ b/Scripts/launch-window-smoke.sh@@ -23,6 +23,13 @@ pkill -f "$BIN" 2>/dev/null; sleep 1HIGHBALL_HOME="$H" "$BIN" >/dev/null 2>&1 & sleep 6osascript -e "tell application \"System Events\" to set frontmost of (first process whose unix id is $(pid)) to true" >/dev/null 2>&1; sleep 1echo "after launch: $(wins)"+# Every step below goes through System Events, which answers with nothing for every app when+# Accessibility is denied to this shell, and the smoke then fails as "no main window" with each+# line blank (2026-09-24). CG still sees the window, so tell the two apart before going on.+if [ -z "$(wins)" ] && [ "$("$ROOT/Scripts/winlist" 2>/dev/null | grep "pid=$(pid)" | grep -c on=true)" -ge 1 ]; then+ pkill -f "$BIN" 2>/dev/null; rm -rf "$H"; record false "accessibility denied"+ echo "LAUNCH WINDOW SMOKE FAILED: the window is on screen but System Events cannot see it: Accessibility is denied to this shell (System Settings, Privacy & Security, Accessibility)"; exit 1+fiosascript -e "tell application \"System Events\" to tell (first process whose unix id is $(pid)) to keystroke \",\" using command down" >/dev/null 2>&1; sleep 2echo "after Cmd-,: $(wins)"osascript -e "tell application \"System Events\" to tell (first process whose unix id is $(pid)) to click button 1 of window \"Highball\"" >/dev/null 2>&1; sleep 1diff --git a/Scripts/upgrade-smoke.sh b/Scripts/upgrade-smoke.shindex 63ac06f..367f229 100755--- a/Scripts/upgrade-smoke.sh+++ b/Scripts/upgrade-smoke.sh@@ -95,7 +95,15 @@ if [ "$SCREEN" = 1 ]; thensleep 1; n=$((n+1))win=$(osascript -e "tell application \"System Events\" to count windows of (first process whose unix id is $pid)" 2>/dev/null || echo 0)done- [ "$win" -ge 1 ] || { kill "$pid" 2>/dev/null || true; fail "no window after 30 s"; }+ if [ "$win" -lt 1 ]; then+ # System Events answers 0 for every app when Accessibility is denied to this shell, and the+ # failure then reads like an app regression (2026-09-24: an afternoon spent on it, the grant had+ # gone with an editor update). CG still sees the window, so ask it before blaming the app.+ cg=$("$ROOT/Scripts/winlist" 2>/dev/null | grep "pid=$pid" | grep -c on=true)+ kill "$pid" 2>/dev/null || true+ [ "$cg" -ge 1 ] && fail "the window is on screen but System Events cannot see it: Accessibility is denied to this shell (System Settings, Privacy & Security, Accessibility)"+ fail "no window after 30 s"+ fisleep 4screencapture -x "$ROOT/private/upgrade-smoke/library.png" 2>/dev/null || truekill "$pid" 2>/dev/null || true