Run non steam windows game under Linux
For example I want to run caesar 3 windows game..
Create this script in Caesar 3 folder, named c3.sh
$ vi c3.sh
#!/bin/bash
SCRIPT=`realpath $0`
SCRIPTPATH=`dirname $SCRIPT`
export STEAM_COMPAT_DATA_PATH="$SCRIPTPATH/compatdata"
mkdir $STEAM_COMPAT_DATA_PATH
# change this to your proton binary, for example: $HOME/.local/share/Steam/steamapps/common/Proton 3.16/proton
PROTON="/path/steamlibrary/Steam/SteamApps/common/Proton 3.16/proton"
# change c3.exe to your game executable
EXE="c3.exe"
"$PROTON" run "$SCRIPTPATH/$EXE"
killall -r "$EXE"
$ chmod +x c3.sh
Run Steam, open menu Games -> Add Non Steam Game -> Browse... and choose c3.sh
Click Play to run! 😼
Create this script in Caesar 3 folder, named c3.sh
$ vi c3.sh
#!/bin/bash
SCRIPT=`realpath $0`
SCRIPTPATH=`dirname $SCRIPT`
export STEAM_COMPAT_DATA_PATH="$SCRIPTPATH/compatdata"
mkdir $STEAM_COMPAT_DATA_PATH
# change this to your proton binary, for example: $HOME/.local/share/Steam/steamapps/common/Proton 3.16/proton
PROTON="/path/steamlibrary/Steam/SteamApps/common/Proton 3.16/proton"
# change c3.exe to your game executable
EXE="c3.exe"
"$PROTON" run "$SCRIPTPATH/$EXE"
killall -r "$EXE"
$ chmod +x c3.sh
Run Steam, open menu Games -> Add Non Steam Game -> Browse... and choose c3.sh
Click Play to run! 😼
Comments