Repository navigation
Start a Linux game by its release's own start script - #214
Merged
elripalda merged 1 commit intoNov 16, 2026
Merged
Conversation
A .NET release's run.sh finds the player's runtime and sets DOTNET_ROOT before starting the app host; the host on its own finds nothing and exits at once with code 131. The installer picked the host as the game, so Play never started it. find_exe now ranks a Linux start script (run.sh, start.sh, Launch.sh) ahead of the program it sets up, as it already does for a Windows launch script, but never a diagnostic, build, tool or dedicated-server script. EXE_RULES 21 makes installs picked by the older rules look again on their next Play. The crash window also reads the Linux app host's message and its "Download the .NET runtime" link. Fixes elripalda#207.
This was referenced Nov 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Fixes #207.
A .NET recomp's Linux release ships its app host (e.g.
sotn) next to arun.shthat finds the player's runtime, setsDOTNET_ROOT, and then starts the host. The launcher picked the app host as the game; the host searches only the default locations, finds nothing, and Play ends at once with code 131 and "You must install .NET to run this application."find_exenow ranks a Linux start script (run.sh,start.sh,Launch.sh) ahead of the program it sets up, the same way it already treats a Windows launch script. Diagnostic and build scripts don't win, nor do scripts in a tool folder or a dedicated server's (server/start.sh).EXE_RULESgoes from 20 to 21, so installs picked by the older rules look at their folder again on the next Play and move to the start script automatically.The crash window also recognises the Linux app host's output ("You must install .NET...", ".NET location: Not found",
app-launch-failed) and the "Download the .NET runtime" link next to it, so a runtime that is genuinely missing still offers Get .NET.How you tested it
npm testpasses (620 passed, 1 ignored)node --test tests/*.test.cjspasses (258 passed)npm run dev)The new Rust test
a_linux_start_script_goes_ahead_of_the_program_it_sets_upbuilds the reported layout — a 78 KB .NET app host, its managed DLL, andrun.sh— and checksrun.shis picked. It also checks that a diagnostic script and a dedicated server'sstart.shdon't win.Against the log from #207, the crash window's new pattern matches and reads its download link (
https://aka.ms/dotnet-core-applaunch?...).Checklist
recomplauncher.jsonchange, so no schema or docs update