Skip to content

Instantly share code, notes, and snippets.

@sxiii
Created March 4, 2021 19:40
Show Gist options
  • Save sxiii/6b5cd2e7d2321df876730f8cafa12b2e to your computer and use it in GitHub Desktop.
Save sxiii/6b5cd2e7d2321df876730f8cafa12b2e to your computer and use it in GitHub Desktop.
How to launch games via Proton from CLI (useful for debug)

How to launch games via Proton from CLI (useful for debug)

In just 2 steps

First. Run this:

export STEAM_COMPAT_DATA_PATH=~/.local/share/Steam/steamapps/compatdata

Second. Now in the same terminal, run your game (this example: Raft)

~/.local/share/Steam/steamapps/common/Proton\ 5.13/proton run ~/.local/share/Steam/steamapps/common/Raft/Raft.exe

If you want different proton version, replace it in the first part of path, for example, this is "Breathedge" game on Proton-Experimental:

~/.local/share/Steam/steamapps/common/Proton\ -\ Experimental/proton run ~/.local/share/Steam/steamapps/common/Breathedge/Breathedge.exe

I recommend you doing (and publishing) your own notes if your app is running, but unstable.

Q & A

Q: What actually is Proton? A: Improvement to WINE written by Valve/Steam. More info here: https://en.wikipedia.org/wiki/Proton_(software)

Q: Will my game "X" actually run with proton? Which Proton version do I need? A: Check out the database by typing your game name in search here: http://protondb.com

Q: I've tried my game with proton, it does not work, what else to do? A: Check if guys at WINE itself was able to run it, by searching in "Browse Apps" here: http://appdb.winehq.org. Also, as with proton, try different versions of wine, and maybe even on different linux distros or with different hardware (CPU, GPU, etc.)

Q: My game still don't work neither with WINE nor with Proton, can I try something else? A: Yes, you can also try different other ways:

Q: I want to manage Wine Bottles, or run different software, but I don't want to do it via CLI. I need GUI. How do I do that? A: There are plenty of different software for that. Check out:

Q: Nothing helped! What else I can do? A: Run VirtualBox, VMWare, Parallels, add GPU-passthrough, or just make a dual-boot with Windows.

@Gpinchon
Copy link

Gpinchon commented Jun 5, 2024

The compatdata path is wrong, it should point to where your wine prefix is (the pfx folder)

So it should be STEAM_COMPAT_DATA_PATH=~/.local/share/Steam/steamapps/compatdata/[THE GAMEID]

@pasha0804
Copy link

a bit late but I'd like to do this with proton GE which i installed with protonplus but i somehow cant find the path to the proton ge executable... does anyone have an idea?

@Dangonizer
Copy link

a bit late but I'd like to do this with proton GE which i installed with protonplus but i somehow cant find the path to the proton ge executable... does anyone have an idea?

~/.local/share/Steam/compatibilitytools.d/

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