ryubing-ryujinx/distribution/linux/Ryujinx.sh
ranidspace f83818bafe
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.
2026-05-21 12:46:40 -04:00

11 lines
253 B
Bash
Executable file

#!/usr/bin/env sh
SCRIPT_DIR=$(dirname "$(realpath "$0")")
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" "$@"