protonscr

Add a Non-Steam Game does not list .desktop files from Wine

steamopen reviewedSteam clientnon-Steam application
ValveSoftware/steam-for-linux#1289 · opened 2013-02-05 by thoemy · updated 2023-01-26 · 1 comments · github
Tthoemy 2013-02-05 github

The first problems seems to be that Steam does not find the following .desktop file in ~/.local/share/applications/wine/Programme/Grinding Gear Games/Path of Exile.desktop.

[Desktop Entry]
Name=Path of Exile
Exec=env WINEPREFIX="/home/thoemy/.wine" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/thoemy/.wine/dosdevices/c:/users/thoemy/Startmenü/Programme/Grinding\\ Gear\\ Games/Path\\ of\\ Exile.lnk
Type=Application
StartupNotify=true
Path=/home/thoemy/.wine/dosdevices/c:/Programme/Grinding Gear Games/Path of Exile/
Icon=7F60_ClientIcon.0

But copying it directly to ~/.local/share/applications/ still doesn't list it. Removing the env WINEPREFIX="/home/thoemy/.wine" part from the Exec line lets it appear in the list but it doesn't start with the following output.

Game update: AppID 0 "Path of Exile", ProcID 17458, IP 0.0.0.0:0
ERROR: ld.so: object 'gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object 'gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object 'gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object 'gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object 'gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded: ignored.
Usage: wine PROGRAM [ARGUMENTS...]   Run the specified program
       wine --help                   Display this help and exit
       wine --version                Output version information and exit
Game removed: AppID 0 "Path of Exile", ProcID 17458 

The env WINEPREFIX="/home/thoemy/.wine" is not needed on the command line.

Also directly adding this .desktop file with the browse button has no effect.

WWPettersson 2013-11-17 github

Same result here. The issue is the equals sign, removing it makes the game show up and lets me add it. According to the spec for .desktop files (http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s03.html) the equals sign is allowed as a part of the "value" in a key=value pair. I don't have your parsing code handy; if I did I'd also offer a patch to fix those.

Launch options