Skip to content

Instantly share code, notes, and snippets.

@foodlfg
Created October 27, 2020 17:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save foodlfg/d104c6d42e14d6929a0e8626c8edaeb6 to your computer and use it in GitHub Desktop.
Save foodlfg/d104c6d42e14d6929a0e8626c8edaeb6 to your computer and use it in GitHub Desktop.
#!/bin/bash
#Run game or given command in environment
cd "/home/aa/.steam/debian-installation/steamapps/common/Supreme Commander Forged Alliance"
DEF_CMD=("/home/aa/.steam/debian-installation/steamapps/common/Supreme Commander Forged Alliance/bin/SupremeCommander.exe")
PATH="/home/aa/.steam/debian-installation/steamapps/common/Proton 5.13/dist/bin/:/usr/bin:/bin" \
TERM="xterm" \
WINEDEBUG="-all" \
WINEDLLPATH="/home/aa/.steam/debian-installation/steamapps/common/Proton 5.13/dist/lib64//wine:/home/aa/.steam/debian-installation/steamapps/common/Proton 5.13/dist/lib//wine" \
LD_LIBRARY_PATH="/home/aa/.steam/debian-installation/steamapps/common/Proton 5.13/dist/lib64/:/home/aa/.steam/debian-installation/steamapps/common/Proton 5.13/dist/lib/:/overrides/lib/x86_64-linux-gnu:/overrides/lib/i386-linux-gnu" \
WINEPREFIX="/home/aa/.steam/debian-installation/steamapps/compatdata/9420/pfx/" \
WINEFSYNC="1" \
SteamGameId="9420" \
SteamAppId="9420" \
WINEDLLOVERRIDES="steam.exe=b;mfplay=n;dxvk_config=n;d3d11=n;d3d10=n;d3d10core=n;d3d10_1=n;d3d9=n" \
STEAM_COMPAT_CLIENT_INSTALL_PATH="/home/aa/.steam/debian-installation" \
WINE_LARGE_ADDRESS_AWARE="1" \
GST_PLUGIN_SYSTEM_PATH_1_0="/home/aa/.steam/debian-installation/steamapps/common/Proton 5.13/dist/lib64/gstreamer-1.0:/home/aa/.steam/debian-installation/steamapps/common/Proton 5.13/dist/lib/gstreamer-1.0" \
WINE_GST_REGISTRY_DIR="/home/aa/.steam/debian-installation/steamapps/compatdata/9420/gstreamer-1.0/" \
MEDIACONV_AUDIO_DUMP_FILE="/home/aa/.steam/debian-installation/steamapps/shadercache/9420/fozmediav1/audio.foz" \
MEDIACONV_AUDIO_TRANSCODED_FILE="/home/aa/.steam/debian-installation/steamapps/shadercache/9420/fozmediav1/transcoded_audio.foz" \
MEDIACONV_VIDEO_DUMP_FILE="/home/aa/.steam/debian-installation/steamapps/shadercache/9420/fozmediav1/video.foz" \
MEDIACONV_VIDEO_TRANSCODED_FILE="/home/aa/.steam/debian-installation/steamapps/shadercache/9420/fozmediav1/transcoded_video.foz" \
"/home/aa/.steam/debian-installation/steamapps/common/Proton 5.13/dist/bin/wine" steam.exe "${@:-${DEF_CMD[@]}}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment