Steam for Linux

Steam for Linux

TiZ Jun 1, 2013 @ 11:35am
%command% not quoted
Hi there. I have a special script I use to start games in a separate X server. It works much like optirun or primusrun in that you just do gamerun bluh to run your thing. But for some games it just doesn't work, for example, Dungeons of Dredmor. In my error log for the game server, I see:

/home/trent/bin/gamerun.xinit: /home/trent/.local/share/Steam/SteamApps/common/Dungeons: No such file or directory

When in reality, the command is /home/trent/.local/share/Steam/SteamApps/common/Dungeons of Dredmor. It has spaces... ugh. I tried putting quotes around %command%, but it makes no diffference.

Short of making scripts just for this special little snowflake and any other developers that think it's a good idea to name their executables with spaces, is there anything I can do to get this to work?
< >
Showing 1-3 of 3 comments
[Linux] timopm Jun 1, 2013 @ 11:54am 
Escape the spaces by using a backslash:

/home/trent/.local/share/Steam/SteamApps/common/Dungeons\ of\ Dredmor
TiZ Jun 1, 2013 @ 11:59am 
That would be a great thing to tell the Steam developers to do, sure. And yeah, I'm sure I could do that myself. It just kind of defeats the purpose of the %command% variable if I do it myself, you know?
TiZ Jun 1, 2013 @ 12:15pm 
Ah, even more fun-ness. I just found out if I try to do it by manually inserting the command, it ignores the gamerun script entirely. HOORAY.

It seems that the %command% variable MUST be present in order to let wrappers do stuff with the executable.
Last edited by TiZ; Jun 1, 2013 @ 12:16pm
< >
Showing 1-3 of 3 comments
Per page: 15 30 50

Date Posted: Jun 1, 2013 @ 11:35am
Posts: 3