Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launching other executables FIRST #5

Closed
Hate9 opened this issue Mar 23, 2022 · 3 comments
Closed

Launching other executables FIRST #5

Hate9 opened this issue Mar 23, 2022 · 3 comments

Comments

@Hate9
Copy link

Hate9 commented Mar 23, 2022

Ok, so this is niche as hell, but is there any way I could use this to launch an external executable in a proton instance, and then launch the game?

Because I have a mod that needs to load before the game can, but using this the normal way, the game has to start in order for the proton instance to open for me to launch the external program.

Could I switch the process, and launch the external program via proton, and then launch the game's exe in that's proton instance?

@jcnils
Copy link
Owner

jcnils commented Mar 23, 2022

It is possible, but this script does not have this feature.

You can do that with Lutris or Bottles out of the box if you are in a hurry, as it will take me some time to work on this.

Do you need to interact at all with the external executable before launching the game, or it just need to run first?

@Hate9
Copy link
Author

Hate9 commented Mar 23, 2022

Yeah, I shouldn't need to interact with the external executable before launching, it just needs to run first so it can modify the multiplayer behavior or something.

@jcnils
Copy link
Owner

jcnils commented Apr 13, 2024

This was a while ago, but I hope this help people in the future.

You can use this in the Steam launch options to run an entirely different executable. And if needed, you can use protonhax to start the game.

eval $(echo "protonhax init %command%" | sed "s|path/to/game.exe|path/to/your.exe|")
example https://www.protondb.com/app/368260/

People usually do this to bypass launchers, like 2k, and open the game straight away.

I also saw some people using

bash -c 'exec "${@/path/to/game.exe/path/to/your.exe}"' -- %command%
example https://safereddit.com/r/SteamDeck/comments/yqsgks/using_launch_options_to_launch_an_entirely/

I have not tested this last one.

@jcnils jcnils closed this as completed Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants