Closed xTeixeira closed 3 months ago
It's impossible to change the ENV for a running process without nasty hacks as far as I know.
The current implementation invokes the binary, however this doesn't really do anything if the Steam is already running apart from telling the running instance which app to run.
I don't really know how to even approach this request 🤔
Ah I see, that makes sense.
For my setup I pretty much need Steam to NOT be already running when starting a stream, because I need to pass the correct resolution to gamescope when starting it (and the resolution might change depending on whether I'm playing on an external screen or not). And AFAIK running Steam under gamescope is currently the only way to stream in HDR from a Linux host...
Anyway, I'm currently accomplishing what I need by having a script run by Sunshine as a command preparation and saving the environment to a .env file which gets sourced by my custom steam launch script, and I see this feature wouldn't be very useful for any situation where Steam is already running when a stream starts, so probably no need to implement this after all.
When running through moondeck-buddy, Steam (or whatever is being launched) doesn't get these variables since it is launched by moondeck-buddy, not Sunshine.
It could be useful to have these available for use along with
steam_binary_override
and custom Steam launch scripts.Particularly I would like to have
SUNSHINE_CLIENT_WIDTH
andSUNSHINE_CLIENT_HEIGHT
in order to run Steam under gamescope and set the correct resolution for gamescope through command line options.