Running Windows games via umu-run
Some Windows games require Steam runtime to work correctly with Proton. The version that comes with Proton only works with Steam. There is a modified version called umu which is designed for non-Steam games.
This example runs "Raptor" which is a Game Maker 6 game. Raptor is not working with the normal Proton run script but does work with umu.
How to do it
Create proton prefix directory
mkdir /opt/_pfx/gamemaker
Put this run.sh script in the installation directory of the game, setting configurable settings as needed. If you need to set extra environment variables then you can do that here
#!/bin/bash -x
#---------- CONFIGURABLE SETTINGS ----------
export WINEPREFIX="/opt/_pfx/gamemaker"
export GAMEID=umu-default
export STORE=none
TARGET_PROTON_VERSION=GE-Proton9-27
PROGRAM_NAME="Raptor.exe"
#---------- THE SCRIPT ----------
export STEAM_COMPAT_CLIENT_INSTALL_PATH=$HOME/.steam/steam
export PROTONPATH="$STEAM_COMPAT_CLIENT_INSTALL_PATH/compatibilitytools.d/$TARGET_PROTON_VERSION"
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
pushd "$SCRIPT_DIR"
umu-run "$SCRIPT_DIR/$PROGRAM_NAME" & disown
popd
#!/bin/bash -x
#---------- CONFIGURABLE SETTINGS ----------
export STEAM_COMPAT_DATA_PATH="/opt/_pfx/wc3"
TARGET_PROTON_VERSION=GE-Proton10-29
PROGRAM_NAME="Frozen Throne.exe"
PROGRAM_ARGS=-window
#---------- THE SCRIPT ----------
export STEAM_COMPAT_CLIENT_INSTALL_PATH=~/.steam/steam
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
pushd "$SCRIPT_DIR"
$STEAM_COMPAT_CLIENT_INSTALL_PATH/compatibilitytools.d/$TARGET_PROTON_VERSION/proton run "$SCRIPT_DIR/$PROGRAM_NAME" "$PROGRAM_ARGS" & disown
popd
Mark the script executable, open Terminal and try to run it, it should work
If it works you can create a .desktop file for it and add it to the KDE Application Launcher
How to use winecfg
Rather than this:
proton run "$SCRIPT_DIR/$PROGRAM_NAME" & disown
You want this:
proton run winecfg & disown