This topic has been locked
Two Mar 24, 2023 @ 12:33pm
Run Game with Launch Options from Command Line
I'm developing an app that interacts with Steam, and I want to be able to run source games with specific launch options in a way that works cross-platform.

So far I've been attempting to do this using the Steam browser Protocol however I cannot figure out how to add launch options to the
steam://run/<id>//<args>/
deeplink. It seems to open the game just fine but any options added as arguments are ignored.

I also know I can use the
steam -applaunch <gameid> <params>
command on linux or
steam.exe -applaunch <gameid> <params>
command on windows, however I have not been able to find a way to do this on macos, and it also requires windows users to specify where their steam exe is installed.

If anyone knows a better way to do this it would be appreciated.
< >
Showing 1-2 of 2 comments
bradley.dotnet Dec 27, 2024 @ 10:08pm 
For anyone coming across this in the future, use the "launch" command (from the protocol page you linked), ie.

steam://launch/<id>/dialog

At least to get Steam to use the configured launch options or present a choice to the user. Confirmed this uses the default selection if selected in the app properties, where run completely ignores it.
Christina Dec 28, 2024 @ 1:31am 
This thread was quite old before the recent post, so we're locking it to prevent confusion.
< >
Showing 1-2 of 2 comments
Per page: 1530 50

Date Posted: Mar 24, 2023 @ 12:33pm
Posts: 2