STEAM GROUP
Linux User Group s-lug
STEAM GROUP
Linux User Group s-lug
208
IN-GAME
1,845
ONLINE
Founded
April 16, 2010
Language
English
lightwo Nov 5, 2022 @ 11:15am
[Worked around] Very specific awk/sed situation
Edit
I found that DXVK state cache[github.com] is a better idea than abusing Steam launch options. Some ready to use cache files can be obtained here[github.com].



Launching games on Steam offers a neat feature, using %command% to insert the command given by the client.

What I want to do is to replace the last argument, which always appears to be the executable path, with a custom path I set, so that I can run my custom instance of the game.

The problem is that the executable path uses quotes, and no instant solution worked because of that.

Preview of %command% for Teardown:
/home/user/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=1167630 -- /home/user/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- '/home/user/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier'/_v2-entry-point --verb=waitforexitandrun -- '/home/user/.local/share/Steam/steamapps/common/Proton 7.0'/proton waitforexitandrun '/path/to/SteamLibrary/steamapps/common/Teardown/teardown.exe'

I want to do this because I don't know how to manually set up shader cache for Steam games launched outside of Steam, since it helps with performance.

Also, I will be totally honest, I have no idea how to use these. It is what I'm least familiar with and not very interested in learning how to use.
Last edited by lightwo; Nov 5, 2022 @ 12:36pm