run_guest_scene: take the Wine from $WINE when --wine is not given #313

Closed
Andretuta wants to merge 1 commit from upstream-pr/313 into main
Andretuta commented 2026-11-24 03:07:11 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Andretuta on 2026-11-24T03:07:11Z.


Carried over from old PR 10047 by SkippySteve in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/10047, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
SkippySteve: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

Claim: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7117065492

On Linux, scripts/run_guest_scene.py stops at --wine is required outside Windows even when WINE names the Wine to use (for example UMU-Proton's files/bin/wine). run_wine_tests.py already defaults --wine to $WINE.

  • --wine now defaults to $WINE. A blank WINE counts as unset, and --wine still wins when both are given.
  • The error messages and help text mention WINE, and "not found" now names the path it tried.
  • New tests/test_run_guest_scene_wine.py (synthetic files only) covers: Wine taken from WINE, --wine-arg with Wine from WINE, --wine overriding WINE, unset/blank WINE still refused, and a WINE that does not exist. On main 5 of its 5 tests fail; with this change they pass. test_docs_cli_flags, test_dev_guest_scene and test_dev_discovery still pass.

I checked it on Arch with UMU-Proton 11.0: with WINE=…/UMU-Proton-11.0-2e-x86_64/files/bin/wine, parse_args resolves to that wine. With WINE unset it still exits 2. No game files, no GPU.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5465323422 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/313). Originally posted by [Andretuta](https://github.com/Andretuta) on 2026-11-24T03:07:11Z. --- > Carried over from **old PR 10047** by `SkippySteve` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/10047`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `SkippySteve`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): Claim: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7117065492 On Linux, `scripts/run_guest_scene.py` stops at `--wine is required outside Windows` even when `WINE` names the Wine to use (for example UMU-Proton's `files/bin/wine`). `run_wine_tests.py` already defaults `--wine` to `$WINE`. - `--wine` now defaults to `$WINE`. A blank `WINE` counts as unset, and `--wine` still wins when both are given. - The error messages and help text mention `WINE`, and "not found" now names the path it tried. - New `tests/test_run_guest_scene_wine.py` (synthetic files only) covers: Wine taken from `WINE`, `--wine-arg` with Wine from `WINE`, `--wine` overriding `WINE`, unset/blank `WINE` still refused, and a `WINE` that does not exist. On `main` 5 of its 5 tests fail; with this change they pass. `test_docs_cli_flags`, `test_dev_guest_scene` and `test_dev_discovery` still pass. I checked it on Arch with UMU-Proton 11.0: with `WINE=…/UMU-Proton-11.0-2e-x86_64/files/bin/wine`, `parse_args` resolves to that wine. With `WINE` unset it still exits 2. No game files, no GPU. AI-assisted (Claude Code, Claude Opus 5.5).
MoonEyes commented 2026-11-27 19:44:00 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-27T19:44:00Z.


Thanks a lot for carrying this over, @Andretuta. The same change is in #1239: it keeps SkippySteve's commit from old-pr/10047 and adds one follow-up commit so that, on native Windows, a WINE variable in the environment is ignored unless --wine is given, with tests for that case. It was claimed in #14 as OLD-10047.

I am closing this draft so the review happens in one place. Please continue the discussion on #1239, or reopen this one if you see something it misses.

AI-assisted (Claude Code, Claude Opus 5.5)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7226817214 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/313#issuecomment-7226817214). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-27T19:44:00Z. --- Thanks a lot for carrying this over, @Andretuta. The same change is in #1239: it keeps SkippySteve's commit from `old-pr/10047` and adds one follow-up commit so that, on native Windows, a `WINE` variable in the environment is ignored unless `--wine` is given, with tests for that case. It was claimed in #14 as OLD-10047. I am closing this draft so the review happens in one place. Please continue the discussion on #1239, or reopen this one if you see something it misses. AI-assisted (Claude Code, Claude Opus 5.5)

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!313
No description provided.