Launcher on Linux: Proton starts from the AppImage, and a slim context menu #10

Manually merged
github merged 1 commit from gh-pr/10/head into gh-pr/10/base 2026-12-01 20:42:02 +00:00
Owner

@⁠Zetsukae on GitHub · 2026-12-01 12:28 UTC · original
Zetsukae:development → main · +104 −18 · 4 files · 1 commits · merged 2026-12-01 12:34 UTC

Summary

  • Proton from the AppImage: the AppImage's AppRun sets PYTHONHOME/PYTHONPATH/LD_LIBRARY_PATH/PATH (and GTK/GStreamer module paths) inside the AppImage. Proton inherited them and its Python could not start (No module named 'encodings'), so "Proton could not prepare its prefix (exit status: 1)". Proton, wineserver and xdg-open now get the PC's own environment, and a failed preparation shows Proton's last lines.
  • Context menu: as wide as its longest item and on one line (it wrapped with Linux's font, then stretched to ~560px in WebKitGTK with width: 100% items); placed by its drawn size.

Tested

  • Unit tests (6, one new for the environment cleaning) and typecheck pass.
  • With the 0.1.1 AppImage's exact environment, proton run failed with the Python error; with it cleaned as the launcher now does, run exits 0 and runinprefix victory.exe --version prints victory 0.1.0.
  • Menu measured in WebKitGTK: 175×140 (was 168×152 wrapped in 0.1.1, 559×140 with the first fix); a hidden menu stays hidden.

🤖 Generated with Claude Code

**@⁠Zetsukae** on GitHub · 2026-12-01 12:28 UTC · [original](https://github.com/Zetsukae/Northstar-AMD/pull/10) `Zetsukae:development` → `main` · +104 −18 · 4 files · 1 commits · merged 2026-12-01 12:34 UTC ## Summary - **Proton from the AppImage**: the AppImage's AppRun sets `PYTHONHOME`/`PYTHONPATH`/`LD_LIBRARY_PATH`/`PATH` (and GTK/GStreamer module paths) inside the AppImage. Proton inherited them and its Python could not start (`No module named 'encodings'`), so "Proton could not prepare its prefix (exit status: 1)". Proton, `wineserver` and `xdg-open` now get the PC's own environment, and a failed preparation shows Proton's last lines. - **Context menu**: as wide as its longest item and on one line (it wrapped with Linux's font, then stretched to ~560px in WebKitGTK with `width: 100%` items); placed by its drawn size. ## Tested - Unit tests (6, one new for the environment cleaning) and typecheck pass. - With the 0.1.1 AppImage's exact environment, `proton run` failed with the Python error; with it cleaned as the launcher now does, `run` exits 0 and `runinprefix victory.exe --version` prints `victory 0.1.0`. - Menu measured in WebKitGTK: 175×140 (was 168×152 wrapped in 0.1.1, 559×140 with the first fix); a hidden menu stays hidden. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The AppImage's AppRun sets PYTHONHOME, PYTHONPATH, LD_LIBRARY_PATH, PATH
and GTK/GStreamer module paths inside the AppImage for the launcher; every
program the launcher started inherited them, and Proton's Python could not
start ("No module named 'encodings'"), so preparing the prefix failed with
exit status 1. Proton, wineserver and xdg-open now get the PC's own
environment: each variable loses the AppImage's entries, or goes. A failed
preparation also says Proton's last words instead of the status alone.

The game's context menu is as wide as its longest item, on one line
(Linux's fallback font is wider than Segoe UI, and "Change game path"
wrapped). Its items stretch across a flex column instead of a 100% width,
which WebKitGTK resolved to ~560px, and it is placed by its drawn size.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 20:42:00 +00:00
github manually merged commit 1960f803c4 into gh-pr/10/base 2026-12-01 20:42:02 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.