Skip to content

Play starts a .NET app host directly instead of its Linux start script when the boot profile names the Windows program #255

Closed

Description

@Element20Three

What's it about?

The launcher itself — Play starts the wrong program on Linux.

This is not the game crashing. The launcher starts the .NET app host directly, so it never runs the release's own run.sh, which finds the player's runtime and sets DOTNET_ROOT first.

Which game?

Castlevania: Symphony of the Night / Symphony Recomp (BlackLabelHQ/SymphonyRecomp), Linux x64 release.

Launcher version

0.90 Beta 57 (the release that includes #214).

What happened?

Press Play and the game exits at once with code 131 and "You must install .NET to run this application."

The launcher has already re-picked the game's start script, so the #214 selection fix is working:

"exe": "run.sh",
"exe_rules": 21

But the captured output is still the bare app host's, with DOTNET_ROOT unset:

App: /mnt/games/Recomp Games/symphonyrecomp/sotn
Architecture: x64
App host version: 10.0.14
.NET location: Not found

The following locations were searched:
  ...
  Environment variable:
    DOTNET_ROOT_X64 = <not set>
    DOTNET_ROOT = <not set>

run.sh sits next to sotn and does this before starting it:

ROOT="$(find_runtime || true)"
export DOTNET_ROOT="$ROOT"
export PATH="$ROOT:$PATH"
exec "$APP" "$@"

The runtime is at ~/.dotnet (Microsoft.NETCore.App 10.0.14), and running ./run.sh in the game folder starts the game. When Play starts sotn directly, the app host only checks the system-wide default (/usr/share/dotnet), finds nothing, and exits 131.

Why

The catalog's boot profile for this game says "start": "sotn.exe" and has no start_linux.

On Linux, Play takes the profile's program first (started_exe → Profile::command_for → Profile::program_for). program_for maps sotn.exe to the native twin sotn with native_twin, so the profile path starts the .NET app host. g.exe = run.sh is only the fallback and is bypassed.

#214 fixed find_exe, which feeds g.exe, and the crash window's .NET detection. It did not change the profile path.

Expected

When a profile's program resolves to a .NET app host (<name>.runtimeconfig.json beside it) and the release ships a Linux start script (run.sh, start.sh, <name>.sh, launcher.sh), Play should start that script. The profile's arguments are safe to pass on: the script ends with exec "$APP" "$@".

Related: #207 (closed by triage), #214 (merged in beta.57).

Your PC

Linux Mint 22.3, x86_64. .NET 10 runtime installed in ~/.dotnet.

Activity

  1. added a commit that references this issue on Nov 17, 2026
    15d2606
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions