steam-for-linux icon indicating copy to clipboard operation
steam-for-linux copied to clipboard

For non-Steam games: %command% in the launch options is not interpreted

Open popsUlfr opened this issue 7 years ago • 68 comments

Your system information

  • Steam client version (build number or date): 1547865289 (Jan 19 2019, at 02:01:59)
  • Distribution (e.g. Ubuntu): Arch Linux
  • Opted into Steam client beta?: Yes
  • Have you checked for system updates?: Yes

Please describe your issue in as much detail as possible:

So non-Steam windows games can be added via .exe file and launched through proton directly in the client now. However the %command% macro that works in the launch options for the other Steam games does not seem to be interpreted for those non-Steam launchers. So setting something like :

DXVK_HUD=1 PROTON_DUMP_DEBUG_COMMANDS=1 %command%

Will just append them as parameters to the launched executable.

Steps for reproducing this issue:

  1. Add a non-Steam windows game via its .exe (Add a Non-Steam Game... > Browse > File type: All Files > Open a .exe)
  2. In its properties select "Set launch options..."
  3. Set for instance DXVK_HUD=1 PROTON_DUMP_DEBUG_COMMANDS=1 %command%
  4. They will just be supplied as parameters to the launched executable

popsUlfr avatar Jan 20 '19 16:01 popsUlfr

Does normal arguments like -devmode etc work? is it just the %command% param trick not working?

EDIT: Yes normall arguments seem to work, tested by me.

jarrard avatar Jan 25 '19 19:01 jarrard

I can confirm that I have the same issue.

tgharib avatar Jan 27 '19 15:01 tgharib

As a temporal workaround you could just start steam with specific env var, eg DXVK_HUD=1 steam

b4ssrp avatar Jan 28 '19 23:01 b4ssrp

As a temporal workaround you could just start steam with specific env var, eg DXVK_HUD=1 steam

The better way to do it is renaming user_settings.sample.py to user_settings.py in proton and setting the variable there for now. But it would make more sense and be more practical to have that macro work for non-steam shortcuts.

popsUlfr avatar Jan 31 '19 17:01 popsUlfr

~~Would love to see this "fixed". I mainly need this feature to be able to launch the game with optirun %command%.~~ nvidia-xrun is better.

BobbyWibowo avatar Feb 02 '19 18:02 BobbyWibowo

Also having the same problem. Looking forward to a fix

ThatAnnoyedGuy avatar Feb 03 '19 17:02 ThatAnnoyedGuy

I have this issue also

TheDaftRick avatar Mar 09 '19 05:03 TheDaftRick

Just hit this issue as well (commenting to keep track of the status of this bug). "Set launch options" does not behave consistently between Steam and non-Steam games.

[edit] This issue affects also non-windows games. Linux native games (installed e.g. using apt or dnf) are affected.

dreamer avatar May 21 '19 09:05 dreamer

Yeah its still a issue, I forgot this still existed until I started messing with skyrimse and used a whole heap of arguments etc to configure things on launch.

jarrard avatar May 21 '19 09:05 jarrard

Commenting to say that this issue still occurs, I have the non-Steam version of GTA V and cannot use WINEDLLOVERRIDES=winedbg.exe=d %command% so instead have to use strace every time to get into GTA Online without crashing.

felixactually avatar Aug 03 '19 09:08 felixactually

Is this ever going to be fixed? It has been almost 7 months now since this issue was opened.

ThatAnnoyedGuy avatar Aug 09 '19 02:08 ThatAnnoyedGuy

I'll haft to test this again to see if its the case.

jarrard avatar Aug 09 '19 02:08 jarrard

I'll haft to test this again to see if its the case.

Just tested myself. Still doesn't work

ThatAnnoyedGuy avatar Aug 09 '19 02:08 ThatAnnoyedGuy

Issue still occurs with Proton 4.11-4.

felixactually avatar Sep 16 '19 20:09 felixactually

This issue is not related to Proton.

dreamer avatar Sep 16 '19 22:09 dreamer

Correct the issue is related to steam, there is a steam valve general github you can place the issue on I think?

jarrard avatar Sep 17 '19 00:09 jarrard

I'm aware that this issue isn't related to Proton @dreamer, I wasn't saying that it is. Just that with the release of the latest Proton, the issue still occurs.

felixactually avatar Sep 22 '19 08:09 felixactually

I ran into this issue and after an hour or so of looking through the Proton Python scripts I found that the environment variables are being set correctly before proton runs, and the code causing issues was only running when "VR_CONFIG_PATH" is in the environment. So my hacky temporary solution is to just include VR_CONFIG_PATH= with any other variables I'm setting before %command%.

The error is being triggered when Proton runs "[...]/wine winepath -w /home/USERNAME/.steam/steam/config" but I can't understand why winepath would fall apart in these circumstances because winepath shouldn't even be using the command line at all anyway. But is seems, to me, like an issue in Proton rather than the Steam client, because Proton is getting the correct environment variables and command line.

tl;dr: I got Grey Goo working by setting the launch options to this: VR_CONFIG_PATH= PROTON_NO_ESYNC=1 %command%

mijofa avatar Oct 05 '19 02:10 mijofa

Have this same issue. Workaround launching steam with that env var works.

DXVK_HUD=1 steam

mercuriete avatar Oct 14 '19 00:10 mercuriete

Problem with that is that some games work a lot better without DXVK_HUD=1, so it's not really suitable as a longterm solution, which is why I went through the code to find the VR_CONFIG_PATH= workaround, presumably it won't work for VR games launched via proton because they won't find their CONFIG_PATH, but that's less games than the EVERYTHING that's affected by setting the steam environment on launch

mijofa avatar Oct 14 '19 03:10 mijofa