Skip to content

Instantly share code, notes, and snippets.

@michaelbutler
Last active April 24, 2024 06:49
Show Gist options
  • Star 50 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save michaelbutler/f364276f4030c5f449252f2c4d960bd2 to your computer and use it in GitHub Desktop.
Save michaelbutler/f364276f4030c5f449252f2c4d960bd2 to your computer and use it in GitHub Desktop.
How to run another .exe in an existing proton wine prefix

Running games through Steam's Proton is great. But what if there is a secondary exe or configuration application bundled with the game? How can you launch it if Steam itself only launches the game?

Simply run this command in a terminal:

cd /path/to/steam/steamapps/compatdata/20920/pfx

STEAM_COMPAT_DATA_PATH="/path/to/steam/steamapps/compatdata/20920" WINEPREFIX=$PWD \
    "$HOME/.steam/root/steamapps/common/Proton 5.0/proton" run ./drive_c/path/to/custom_application.exe

Where 20920 is the game id.

First you cd (change directory) to the proton prefix in question. If you don't have any custom steam libraries it likely will all be within your home directory. To find it easier you may run find . | grep compatdata from ~/ and when you find it, cd to it.

Real world example:

cd /media/michael/SSDGAMES/steam/steamapps/compatdata/20920/pfx

STEAM_COMPAT_DATA_PATH="/media/michael/SSDGAMES/steam/steamapps/compatdata/20920" WINEPREFIX=$PWD \
    "/home/michael/.steam/root/steamapps/common/Proton 5.0/proton" run \
    ./drive_c/flawless/FlawlessWidescreen.exe

Wstart

Someone in the comments below created a bash script that makes this easier: https://gist.github.com/michaelbutler/f364276f4030c5f449252f2c4d960bd2?permalink_comment_id=3921629#gistcomment-3921629

@Proton6959
Copy link

@cprn
It is enabled. This happens after I start the game and then run protontricks-launch ~/Downloads/my.exe in the terminal.

@cprn
Copy link

cprn commented Jun 17, 2023

@Proton6959 If the exec file is supposed to be run in the same process layer as the game then try one of the other methods - if it doesn't work, then IDK man, sorry. Either this:

protontricks-launch --appid <steam_appid> ~/Downloads/my.exe

or this:

protontricks <steam_appid> shell   # use Steam appid of the game
path/to/your/proton ~/Downloads/my.exe

Maybe there's something in protontricks-launch --help that'll help you.

@tuxtergames
Copy link

hey fellows, try steamtinkerlaunch, its more simple to use another .exe inside steam.....

@maplepy
Copy link

maplepy commented Jan 6, 2024

hey fellows, try steamtinkerlaunch, its more simple to use another .exe inside steam.....

explain how?

@tuxtergames
Copy link

hey fellows, try steamtinkerlaunch, its more simple to use another .exe inside steam.....

explain how?

here, its in braziliam porttuguese but just follow the steps, I use here for pes21, eutro truck and american truck to run pickup inside the prefix

@maplepy
Copy link

maplepy commented Jan 7, 2024

Thanks man :)

to run pickup

what is that?

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