mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:00:52 +01:00
[PR #217] run_wine_session: initialize and stop the prefix with $WINE #269
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#269
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/217
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:old-pr/9952📝 Commits (1)
a8b661crun_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
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):Claim: https://github.com/ItsNotRexed/Leonida/issues/9677#issuecomment-7116873558
scripts/run_wine_session.shranwinebootandwineserverfromPATH, whilerun_wine_tests.pyruns the tests with$WINE. WithWINEset to Proton's or UMU-Proton'sfiles/bin/wine:timeout: failed to run command 'wineboot'(exit 127), and the exit trap printedwineserver: command not found;The script now runs
"$WINE" wineboot --init(defaultwine, asrun_wine_tests.pydoes) and, at exit, stops$WINESERVER, else thewineservernext to$WINE, elsewineserveronPATH(the same lookup winetricks uses). AWINEthat can't be found is reported with status 127. CI doesn't setWINE, so it still uses the Wine onPATHand itswineserver.docs/testing.mdsays so in one sentence.Tests
tests/test_run_wine_session.py(new, fake wine/wineserver scripts, including a path with a space): 4 tests pass; against the old script all 4 fail.WINE=<UMU-Proton>/files/bin/wine WINEPREFIX=$(mktemp -d) bash scripts/run_wine_session.sh "$WINE" cmd /c echo …initializes the prefix, prints the echo, exits 0, and leaves no wineserver running. The old script exits 127 here.bash -n,scripts/check_no_game_data.pyclean.No game files used. AI-assisted.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.