Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Non-Steam Game Doesn't Work Properly #3855

Closed
Enverex opened this issue May 24, 2015 · 4 comments
Closed

Add Non-Steam Game Doesn't Work Properly #3855

Enverex opened this issue May 24, 2015 · 4 comments

Comments

@Enverex
Copy link

Enverex commented May 24, 2015

Steam seems to ignore everything after the first space on the Exec line in .desktop files so any arguments get ignored. Spaces are valid for .desktop files so obviously this shouldn't happen.

Example .desktop file:

[Desktop Entry]
Name=Super Mario Kart
Exec=emuGame snes "Super Mario Kart (USA).sfc"
Terminal=false
Type=Application
Categories=Game;

It picks up "/bin/emuGame" and nothing more. So trying to add any other .desktop files that start with "emuGame" are all ignored as it classes them all as the same shortcut/program.

@Enverex
Copy link
Author

Enverex commented May 25, 2015

This seems to relate to #711 as well as trying to add Steam .desktop files (even ones created by Steam itself, installed in Wine) doesn't work. For example: adding PAC-MAN Championship Edition DX+'s .desktop File, which has an Exec line as follows...

Exec=env WINEPREFIX="/home/arcade/.wine" wine C:\\\\windows\\\\command\\\\start.exe steam://rungameid/236450

Somehow in native Steam when added this becomes...

Target: "/home/arcade/.local/share/Steam/ubuntu12_32/"

I have no idea where it's even getting that from as it's not even referenced in the .desktop file that was added. Not to mention it's copied literally nothing from the Exec line of the file that was selected.

@Enverex Enverex changed the title Add Non-Steam Game doesn't work when Exec contains spaces Add Non-Steam Game Doesn't Work Properly May 25, 2015
@Enverex
Copy link
Author

Enverex commented May 25, 2015

Renamed bug because this seems more general than simply issues with spaces in the name.

@3vi1
Copy link

3vi1 commented Oct 30, 2015

I ran into this same problem while playing with my new SteamOS system: https://steamcommunity.com/linkfilter/?url=https://github.com/ValveSoftware/steam-for-linux/issues/3855

It seems to me that when adding the .desktop items, Steam should at the very least copy everything after the first space in the Exec into the Launch Options of the newly created item. If you put them in there manually, it will work - but it's a pain for things with lots of long/complicated parameters like Enverex's original example.

@johnv-valve
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants