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

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

📋 Pull Request Information

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

Base: main ← Head: old-pr/10047


📝 Commits (1)

  • d350623 run_guest_scene: take the Wine from $WINE when --wine is not given

📊 Changes

2 files changed (+82 additions, -4 deletions)

View changed files

📝 scripts/run_guest_scene.py (+7 -4)
➕ tests/test_run_guest_scene_wine.py (+75 -0)

📄 Description

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).


🔄 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/313 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `old-pr/10047` --- ### 📝 Commits (1) - [`d350623`](https://github.com/ubiquitarianism/leonida/commit/d350623242e92c3b26ea7084bd75d54fe5580868) run_guest_scene: take the Wine from $WINE when --wine is not given ### 📊 Changes **2 files changed** (+82 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `scripts/run_guest_scene.py` (+7 -4) ➕ `tests/test_run_guest_scene_wine.py` (+75 -0) </details> ### 📄 Description > 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). --- <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#367
No description provided.