protontricks icon indicating copy to clipboard operation
protontricks copied to clipboard

[FEATURE] Option to run program/installer in a game's prefix.

Open Ruedii opened this issue 7 years ago • 6 comments

It would be incredibly useful if protontricks could be used to execute a program or installer in a game's wine prefix.

This could be used to run an installer in the game's prefix, run a command, or most importantly regedit.

Ruedii avatar Sep 09 '18 05:09 Ruedii

Set your launch options to PROTON_DUMP_DEBUG_COMMANDS=1 %command%. Then start the game. You will have a script at /tmp/proton_$USER/run that does that.

ryao avatar Sep 22 '18 05:09 ryao

Yes, I know that exists, but I'm talking about a function that can be integrated into the steam for Linux GUI interface?

Should this feature be moved to the Steam For Linux bug tracker instead, even though it would require changes to both?

Another function for Steam For Linux that would utilize this function would be the ability to launch certain utilities under the games environment from the game preferences dialog. (For instance Wine Settings, controller configuration and Registry Editor.)

Ruedii avatar Oct 04 '18 22:10 Ruedii

Maybe it could be moved there? Steam could have a tab under the properties window for that certain game. There, one could run any programs/installers they need or whatnot (preferably under the name of an "advanced" tab)

Sirmentio avatar Oct 19 '18 16:10 Sirmentio

This may not be entirely relevant to this issue, but you can start a new shell with winetricks' shell verb (seems to be an undocumented debugging feature?) and do whatever you want there. It doesn't set the Wine environment exactly like how Proton does in @ryao's solution above, but it could be good enough for simple commands.

For example:

$ protontricks 21090 shell
$ # New shell is created with game's Wine prefix env vars. Now, let's run winecfg.
$ winecfg
$ # Or maybe install a fan-made patch?
$ wine fanmade_game_patch.exe

Also, regedit can also be run directly like this, since winetricks already has a verb for it:

$ protontricks 21090 regedit

As for running arbitrary commands prior to/instead of starting the game (eg. possibly using syntax like this in Steam launch settings: protontricks 21090 run 'wine sync_game_mods.exe'; %command%), I haven't found out how to do that easily.

Matoking avatar Oct 28 '18 16:10 Matoking

Additional info for this issue: Since Proton 5.13 onwards, Steam Linux Runtime (Soldier) is used to run games in seperate namespaces.

kescherCode avatar Nov 26 '20 05:11 kescherCode

Could somebody distill the knowledge scattered throughout these comments into a simple step by step guide HOWTO correctly execute e.g. VC_redist.x64.exe in the SkyrimSE Steam installation's WINE prefix (because a particular mod requires VC2019 redistributables)? Assume the instructions should be for someone who has never done anything more advanced with Steam Linux than simply installing and running games.

rulatir avatar Mar 15 '21 19:03 rulatir