From f83818bafebbfbc78d26c8dea130b4f9ff035138 Mon Sep 17 00:00:00 2001 From: ranidspace Date: Thu, 21 May 2026 12:46:40 -0400 Subject: [PATCH] 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. --- distribution/linux/Ryujinx.sh | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/distribution/linux/Ryujinx.sh b/distribution/linux/Ryujinx.sh index 5793f8359..460b9a068 100755 --- a/distribution/linux/Ryujinx.sh +++ b/distribution/linux/Ryujinx.sh @@ -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" "$@"