Skip to content

Instantly share code, notes, and snippets.

@olav-valle
Forked from smo0z/ProtonLaunch.sh
Created August 5, 2020 20:12
Show Gist options
  • Save olav-valle/56c9f63fd57c8f35a22b1a6314de41f9 to your computer and use it in GitHub Desktop.
Save olav-valle/56c9f63fd57c8f35a22b1a6314de41f9 to your computer and use it in GitHub Desktop.
Proton Launch Script
#!/bin/sh
# Application path
APP_PATH="$(dirname "${BASH_SOURCE[0]}")"
cd "$APP_PATH"
# Executable file
APP_EXEC="$APP_PATH/.exe"
# Steam / IDs
export SteamAppId=""
export SteamGameId=""
# Steam / Client path
export STEAM_COMPAT_CLIENT_INSTALL_PATH="$HOME/.steam/steam"
# Steam / Apps path
STEAM_APPS_PATH="$STEAM_COMPAT_CLIENT_INSTALL_PATH/steamapps"
# Steam / Compat data path
export STEAM_COMPAT_DATA_PATH="$STEAM_APPS_PATH/compatdata/$SteamAppId"
# Proton / Path
PROTON_PATH="$STEAM_APPS_PATH/common/Proton 4.11"
# Proton / Executable script
PROTON_EXEC="$PROTON_PATH/proton"
python "$PROTON_EXEC" run "$APP_EXEC"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment