From 8fca12d0d3069847f48ff9852497c10a39386438 Mon Sep 17 00:00:00 2001 From: cprn Date: Sun, 27 Apr 2025 21:59:58 +0200 Subject: [PATCH] use `$wine_path` when running `winecfg` or `joy.cpl` Otherwise, it uses system Wine, which isn't bad per se, but if someone installed a runner with staging patches, they will expect to see *Staging* and *Input* tabs. --- lib/sc-launch.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sc-launch.sh b/lib/sc-launch.sh index a8a71b1..72bb27c 100755 --- a/lib/sc-launch.sh +++ b/lib/sc-launch.sh @@ -64,10 +64,10 @@ case "$1" in cd "$WINEPREFIX"; /usr/bin/env bash --norc; exit 0 ;; "config") - /usr/bin/env bash --norc -c "winecfg"; exit 0 + /usr/bin/env bash --norc -c "${wine_path}/winecfg"; exit 0 ;; "controllers") - /usr/bin/env bash --norc -c "wine control joy.cpl"; exit 0 + /usr/bin/env bash --norc -c "${wine_path}/wine control joy.cpl"; exit 0 ;; esac