[PR #1241] run_wine_session: initialize and stop the prefix with $WINE (OLD-9952) #1273

Open
opened 2026-11-26 20:20:41 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1241
Author: @IlyassRS3
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: carry/old-9952-run-wine-session


📝 Commits (1)

  • cf6a451 run_wine_session: initialize and stop the prefix with $WINE

📊 Changes

3 files changed (+94 additions, -3 deletions)

View changed files

📝 docs/testing.md (+3 -1)
📝 scripts/run_wine_session.sh (+16 -2)
➕ tests/test_run_wine_session.py (+75 -0)

📄 Description

What changed

Carries forward old-pr/9952 (draft #221, original commit by @SkippySteve) rebased cleanly onto current main (2e026b03e), preserving the original author commit.

  • scripts/run_wine_session.sh: resolve $WINE (default wine) via command -v (reporting missing Wine with exit status 127), run "$wine_path" wineboot --init instead of bare wineboot, and shut down the prefix with $WINESERVER, else the sibling wineserver next to $wine_path, else wineserver on PATH.
  • docs/testing.md: document $WINE / sibling wineserver / $WINESERVER prefix handling for Proton and UMU-Proton builds without a system Wine.
  • tests/test_run_wine_session.py: add 4 unit tests covering Proton $WINE + sibling wineserver, default wine on PATH, $WINESERVER override + PATH fallback, and missing $WINE exit 127 reporting.

Item ID

  • Coordination issue #14 item: OLD-9952 (carries forward old-pr/9952 / draft #221, #17)
  • Depends on: none

Verification

Tested on macOS 27.2.1 (Apple M5 arm64), Python 3.14, bash + /usr/bin/timeout (no game files, no GPU, standard library only):

  • TMPDIR=/var/tmp python3 -I tests/test_run_wine_session.py -v -> 4/4 OK
  • Revert-source mutation check (reverting scripts/run_wine_session.sh to upstream/main while keeping tests/test_run_wine_session.py) -> FAILED (failures=4) (all 4 tests fail); restoring the fix returns to 4/4 OK.
  • All 12 tests/test_docs_*.py suites -> all OK
  • python3 -I tests/test_ci_registration.py -> 15/15 OK (new test file selected by CI stdlib loop)
  • python3 -I tests/test_text_write_line_endings.py -> 3/3 OK
  • python3 -m compileall -q tests/test_run_wine_session.py -> OK
  • python3 -I scripts/check_no_game_data.py docs/testing.md scripts/run_wine_session.sh tests/test_run_wine_session.py -> OK

Checklist

  • No game files, binaries, shaders, textures, audio, or logs quoting them
  • No keys, decryption, or online services
  • Claimed in the coordination issue (#14) before opening this PR
  • AI-assisted: yes (carried forward, audited, rebased, and regression-verified with AI assistance; original commit by @SkippySteve preserved)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1241 **Author:** [@IlyassRS3](https://github.com/IlyassRS3) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `carry/old-9952-run-wine-session` --- ### 📝 Commits (1) - [`cf6a451`](https://github.com/ubiquitarianism/leonida/commit/cf6a451661860d03f50791b97229bf6607809b99) run_wine_session: initialize and stop the prefix with $WINE ### 📊 Changes **3 files changed** (+94 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `docs/testing.md` (+3 -1) 📝 `scripts/run_wine_session.sh` (+16 -2) ➕ `tests/test_run_wine_session.py` (+75 -0) </details> ### 📄 Description ## What changed Carries forward `old-pr/9952` (draft #221, original commit by @SkippySteve) rebased cleanly onto current `main` (`2e026b03e`), preserving the original author commit. - `scripts/run_wine_session.sh`: resolve `$WINE` (default `wine`) via `command -v` (reporting missing Wine with exit status 127), run `"$wine_path" wineboot --init` instead of bare `wineboot`, and shut down the prefix with `$WINESERVER`, else the sibling `wineserver` next to `$wine_path`, else `wineserver` on `PATH`. - `docs/testing.md`: document `$WINE` / sibling `wineserver` / `$WINESERVER` prefix handling for Proton and UMU-Proton builds without a system Wine. - `tests/test_run_wine_session.py`: add 4 unit tests covering Proton `$WINE` + sibling `wineserver`, default `wine` on `PATH`, `$WINESERVER` override + `PATH` fallback, and missing `$WINE` exit 127 reporting. ## Item ID - Coordination issue #14 item: `OLD-9952` (carries forward `old-pr/9952` / draft #221, #17) - Depends on: none ## Verification Tested on macOS 27.2.1 (Apple M5 arm64), Python 3.14, bash + `/usr/bin/timeout` (no game files, no GPU, standard library only): - `TMPDIR=/var/tmp python3 -I tests/test_run_wine_session.py -v` -> **4/4 OK** - Revert-source mutation check (reverting `scripts/run_wine_session.sh` to `upstream/main` while keeping `tests/test_run_wine_session.py`) -> **FAILED (failures=4)** (all 4 tests fail); restoring the fix returns to **4/4 OK**. - All 12 `tests/test_docs_*.py` suites -> **all OK** - `python3 -I tests/test_ci_registration.py` -> **15/15 OK** (new test file selected by CI stdlib loop) - `python3 -I tests/test_text_write_line_endings.py` -> **3/3 OK** - `python3 -m compileall -q tests/test_run_wine_session.py` -> OK - `python3 -I scripts/check_no_game_data.py docs/testing.md scripts/run_wine_session.sh tests/test_run_wine_session.py` -> OK ## Checklist - [x] No game files, binaries, shaders, textures, audio, or logs quoting them - [x] No keys, decryption, or online services - [x] Claimed in the coordination issue (#14) before opening this PR - [x] AI-assisted: yes (carried forward, audited, rebased, and regression-verified with AI assistance; original commit by @SkippySteve preserved) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1273
No description provided.