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
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
If you're talking about wstart, that shouldn't happen when properly configured. I wasn't entirely correct when I said you can't run another program within a proton prefix. With the way wstart is currently setup, it should work just fine. The tricky bit is that you have to do it after the Steam program is launched.
So the order of operation is this:
I have Elder Scrolls Oblivion installed on my computer. It's actually using proton-ge. I also have the stand-alone version of 32-bit 7zip extracted to my Downloads folder. After I launch Oblivion, I alt-tab to get back to Linux (some games don't alt-tab well, so try to run it windowed instead). In the command shell I type
wstart -pp Downloads/7zip/7zFM.exe
or justwstart -pp Downloads/7zip
, choose the option for proton-ge, then a menu is displayed that shows existing Steam versions (wine prefixes):I select 6 for
22330/pfx
since it matches22330 The Elder Scrolls IV: Oblivion
Voila, 7zip file manager is running alongside Oblivion. We can verify this by running
wstart -pc
which eventually brings up a menu:Choose 4 for Task manager and both programs are running together.
