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.
This commit is contained in:
cprn 2025-04-27 21:59:58 +02:00 committed by GitHub
parent 855e94f942
commit 8fca12d0d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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