Skip to content

Instantly share code, notes, and snippets.

@vaslabs
Created February 11, 2021 20:28
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vaslabs/e85151483bfb7fd5dd6d3c22057f8ad9 to your computer and use it in GitHub Desktop.
Save vaslabs/e85151483bfb7fd5dd6d3c22057f8ad9 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Adapted from https://www.toptensoftware.com/blog/running-ea-origin-games-under-linux-via-steam-and-proton/
# Add custom windows exe to steam (usually it's an installer)
# this creates a directory with a big number as an id, look for it
# in .steam/steam/steamapps/compatdata
COMPATDIR=3999685975
# Pick a Proton Version (steam/steamapps/Proton... for official steam protons)
PROTONVER=root/compatibilitytools.d/Proton-6.1-GE-2
# In this case I'm setting up roblox,
#go to the wine prefix of the compatdata directory and find the executable I want to run
ROBLOX_EXE="pfx/drive_c/Program Files (x86)/Roblox/Versions/version-d582aaa830b4437a/RobloxStudioBeta.exe"
# Steam prefix directory
export STEAM_COMPAT_DATA_PATH=~/.steam/steam/steamapps/compatdata/$COMPATDIR/
# Run
PROTON_LOG=1 ~/.steam/"${PROTONVER}"/proton waitforexitandrun \
"${STEAM_COMPAT_DATA_PATH}${ROBLOX_EXE}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment