ValveSoftware / steam-for-linux

Issue tracking for the Steam for Linux beta client
4.21k stars 175 forks source link

Cannot set programmatically "launch options" environment variables #6443

Open Bumbadawg opened 5 years ago

Bumbadawg commented 5 years ago

Hi, before you read, consider that my end goal is to create a helper script for the community to provide easily more apitraces to Pierre-Loup Griffais / Doitjutsin =)

1st idea: set the variable through the URI protocol i'd like to start by a command my game with set ENV variables (for apitracing proton/dxvk) through the URI protocol or another mean. eg.

PROTON_LOG=1 DXVK_HUD=fps,frametimes WINEDLLOVERRIDES="dxgi,dxgitrace,d3d11,d3d10,d3d9=n,b" xdg-open steam://rungameid/$id/$arguments

It's not possible at the moment.

To run it programmatically, i either have to restart Steam with the ENV variables set, or manually go click for each game to set the launch options.

2nd idea: reload localconfig.vdf on the run to set launch options Also, i was thinking about modifying the "LaunchOptions" value in the localconfig.vdf but the client doesn't read it once it's been launched (see https://github.com/ValveSoftware/steam-for-linux/issues/6121#issuecomment-483008707). Is there a way to for the Steam client to read the newly modified localconfig.vdf ? Can the following API command provide this feature ? (haven't tried it because it seems hazardous)

steam://flushconfig/
    Flushes and reloads the configs for each application (beta availability, etc.)

That would solve my issue.

Thanks in advance.

EphDoering commented 7 months ago

Seconded. Same use case. The ability to auto-install an accessibility launcher would be quite nice.