Skip to content

Instantly share code, notes, and snippets.

@smo0z
Last active June 12, 2025 09:55
Show Gist options
  • Save smo0z/620d9d98e27dbba01345a5b21948f545 to your computer and use it in GitHub Desktop.
Save smo0z/620d9d98e27dbba01345a5b21948f545 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"
@herself
Copy link

herself commented Jun 12, 2025

Thanks! I've struggled with running winecfg.exe, this makes it a breeze!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment