How to set an environment variable for an specific game on Steam for Linux?


14

Well, how? There is that "SET LAUNCH OPTIONS" button, but I believe that is only fit to command line switches.

Respostas:


22

It is possible to prefix the command with your environment variable in the set launch options like so:

YOUR_VARIABLE=1 %command%

Does this still work? The linked docs don't mention it.
Jeroen

It really works according to /proc/<game pid>/environ.
and

1
Is there a way to do this with multiple options? Would separating them with semicolons work?
Robert Wm Ruedisueli

You just leave a space, so my current one is mesa_glthread=true R600_DEBUG=sbcl,hyperz,llvm,sisched,forcedma vblank_mode=0 %command%.
pbhj
Ao utilizar nosso site, você reconhece que leu e compreendeu nossa Política de Cookies e nossa Política de Privacidade.
Licensed under cc by-sa 3.0 with attribution required.