Fix the Ryujinx launcher script

Ryujinx.Headless.SDL3 no longer exists. Only Ryujinx is ever launched.

If the Ryujinx executable doesn't exist, the shell will state that and
error out with a code anyway. The check isn't needed and omitting it
provides more information if something goes wrong.

If possible, we could remove this shell script entirely. Most users who
use Feral GameMode will know to turn it on anyway, and the user should
be in control instead of having it forced.

The bug with LANG=C.UTF-8 seems fixable (I haven't encountered it,
fontconfig related?) and I can find no mention of what
EnableAlternateStackCheck even does.
This commit is contained in:
ranidspace 2026-05-21 12:46:40 -04:00
parent 410ea9bfe2
commit f83818bafe
No known key found for this signature in database
GPG key ID: 90B821AEE788A7F3

View file

@ -1,23 +1,11 @@
#!/bin/sh
#!/usr/bin/env sh
SCRIPT_DIR=$(dirname "$(realpath "$0")")
if [ -f "$SCRIPT_DIR/Ryujinx.Headless.SDL3" ]; then
RYUJINX_BIN="Ryujinx.Headless.SDL3"
fi
if [ -f "$SCRIPT_DIR/Ryujinx" ]; then
RYUJINX_BIN="Ryujinx"
fi
if [ -z "$RYUJINX_BIN" ]; then
exit 1
fi
COMMAND="env LANG=C.UTF-8 DOTNET_EnableAlternateStackCheck=1"
if command -v gamemoderun > /dev/null 2>&1; then
COMMAND="$COMMAND gamemoderun"
fi
exec $COMMAND "$SCRIPT_DIR/$RYUJINX_BIN" "$@"
exec $COMMAND "$SCRIPT_DIR/Ryujinx" "$@"