xfce4-appfinder doesn't handle escaping in desktop file
Submitted by Alexey Kreshchuk
Assigned to Nick Schermer
Description
Example of an error message:
Working directory "/home/krsch/hdd/games/The\sLast\sFedaration/game" does not exist.
It won't be used when spawning "/home/krsch/hdd/games/The\sLast\sFedaration/game/LastFederationLinux.x86_64".
xfce4-appfinder: failed to execute: Failed to execute child process "/home/krsch/hdd/games/The\sLast\sFedaration/game/LastFederationLinux.x86_64" (No such file or directory)
File "/home/krsch/hdd/games/The Last Fedaration/game/LastFederationLinux.x86_64" does exist and is executable.
As mentioned in http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s03.html, escape sequence \s should be treated as a space in string fields. Unfortunately. xfce4-appfinder ignores this rule.
I use Ubuntu 14.04.1 LTS and xfce4-appfinder 4.10.1-1
The desktop file that triggered the above error is:
[Desktop Entry]
Type=Application
Name=The Last Fedaration
Comment=The Last Fedaration (GOG.com)
Icon=/home/krsch/hdd/games/The\sLast\sFedaration/support/gog-the-last-fedaration.png
Exec="/home/krsch/hdd/games/The\sLast\sFedaration/game/LastFederationLinux.x86_64"
Categories=Game;
Terminal=false
Version: Unspecified
Edited by Yousuf Philips