tools: proton-run.sh runs Wine in a headless gamescope without a display #181

Open
github-bot wants to merge 1 commit from github-bot/gh-181 into main AGit
Owner

@⁠360900 on GitHub · 2026-12-02 00:29 UTC · original
360900:fix/proton-run-headless → main · +21 −0 · 2 files · 1 commits · open

What

Without DISPLAY and WAYLAND_DISPLAY Wine waits forever at its first window-system call (prefix creation, a D3D12 device), so tools/proton-run.sh never came back from an ssh session or a job without a desktop. It now runs itself in gamescope --backend headless then, with winebus.sys off (its winedevice.exe outlives the wineserver and gamescope waits for it), and passes the program's exit status through a status file (gamescope's is not the child's).

With a display nothing changes.

The reference

No counterpart: a tool.

Evidence

  • No display: tools/proton-run.sh cmd /c exit 3 returns 3, exit 0 returns 0; before, both hung.
  • The translator's on-card tests through it without a display (RTX 5080, NVIDIA 620.73.04): 339 passed, 0 failed, 5 ignored, 354 s.
  • docs/tools.md has the line.

Checklist (docs/AGENTS.md)

  • One topic (rule 31); docs/TASKS.md not edited (rule 29)
  • "Allow edits by maintainers" on; after review, no force-push and no close-and-reopen
  • No fallback or second path for a case that can't happen (rule 33); unexpected input fails loudly (rule 9)
  • Constants come from the console, the hardware or the title's data (rule 9b)
  • Every switch is listed, read in one place, and a bad value stops the start (rule 2): no new switches
  • Queues and other externally synchronized Vulkan objects are used under their lock (rule 35)
  • Every unsafe block has a // SAFETY: comment (rule 36): no Rust
  • Clippy clean; tests call the production code; TRANSLATOR_VERSION: the translator is not touched (rule 27)
  • Comments say what is true now and name functions, not line numbers (rule 3)
  • Nothing from the title, and no pointers to where non-free data can be found
**@⁠360900** on GitHub · 2026-12-02 00:29 UTC · [original](https://github.com/vktory6/VKtory/pull/181) `360900:fix/proton-run-headless` → `main` · +21 −0 · 2 files · 1 commits · open ## What Without `DISPLAY` and `WAYLAND_DISPLAY` Wine waits forever at its first window-system call (prefix creation, a D3D12 device), so `tools/proton-run.sh` never came back from an ssh session or a job without a desktop. It now runs itself in `gamescope --backend headless` then, with `winebus.sys` off (its winedevice.exe outlives the wineserver and gamescope waits for it), and passes the program's exit status through a status file (gamescope's is not the child's). With a display nothing changes. ## The reference No counterpart: a tool. ## Evidence - No display: `tools/proton-run.sh cmd /c exit 3` returns 3, `exit 0` returns 0; before, both hung. - The translator's on-card tests through it without a display (RTX 5080, NVIDIA 620.73.04): 339 passed, 0 failed, 5 ignored, 354 s. - docs/tools.md has the line. ## Checklist (docs/AGENTS.md) - [x] One topic (rule 31); `docs/TASKS.md` not edited (rule 29) - [x] "Allow edits by maintainers" on; after review, no force-push and no close-and-reopen - [x] No fallback or second path for a case that can't happen (rule 33); unexpected input fails loudly (rule 9) - [x] Constants come from the console, the hardware or the title's data (rule 9b) - [x] Every switch is listed, read in one place, and a bad value stops the start (rule 2): no new switches - [x] Queues and other externally synchronized Vulkan objects are used under their lock (rule 35) - [x] Every `unsafe` block has a `// SAFETY:` comment (rule 36): no Rust - [x] Clippy clean; tests call the production code; `TRANSLATOR_VERSION`: the translator is not touched (rule 27) - [x] Comments say what is true now and name functions, not line numbers (rule 3) - [x] Nothing from the title, and no pointers to where non-free data can be found
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 00:32:00 +00:00
Author
Owner

@⁠vktory6 on GitHub · 2026-12-02 17:37 UTC · original

Merged, thanks: proton-run.sh runs without a display through a headless gamescope and passes the exit status back.

**@⁠vktory6** on GitHub · 2026-12-02 17:37 UTC · [original](https://github.com/vktory6/VKtory/pull/181#issuecomment-7353482113) Merged, thanks: proton-run.sh runs without a display through a headless gamescope and passes the exit status back.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
The changes on this branch are already on the target branch. This will be an empty commit.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/181/head:github-bot/gh-181'
git switch 'github-bot/gh-181'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-181'
git switch 'github-bot/gh-181'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-181'
git switch 'github-bot/gh-181'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-181'
git switch 'main'
git merge --squash 'github-bot/gh-181'
git switch 'main'
git merge --ff-only 'github-bot/gh-181'
git switch 'main'
git merge 'github-bot/gh-181'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.