Skip to content

Instantly share code, notes, and snippets.

@karlek
Created February 24, 2022 23:57
Show Gist options
  • Save karlek/9e365db803af8416f7925d5bb30355bc to your computer and use it in GitHub Desktop.
Save karlek/9e365db803af8416f7925d5bb30355bc to your computer and use it in GitHub Desktop.
Gwent & Proton
#!/bin/sh
# Executable file
APP_EXEC="Gwent.exe"
# Steam / IDs
export SteamAppId="1284410"
export SteamGameId="1284410"
export PROTON_LOG=1
# NOTE: Extremely important to set this to 1, otherwise the game will not start.
export PROTON_USE_WINED3D=1
# 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 - Experimental"
# Proton / Executable script
PROTON_EXEC="$PROTON_PATH/proton"
# NOTE: LD_PRELOAD=.../gameoverlayrenderer.so very important. Otherwise the
# overlay will not be visible, and therefore you can not login to your gog
# account.
LD_PRELOAD="/home/_/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so" "$PROTON_EXEC" run "$APP_EXEC"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment