Menu

#485 Launchy 2.5.0 doesn't parse .desktop files with environment variables

v1.0 (example)
open
nobody
5
2014-04-29
2013-12-14
Michael
No

In Ubuntu, skype creates a desktop file "skype.desktop" that looks like this:

[Desktop Entry]
Name=Skype
Comment=Skype Internet Telephony
Exec=env PULSE_LATENCY_MSEC=60 skype %U
Icon=skype.png
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Network;Application;
MimeType=x-scheme-handler/skype;
X-KDE-Protocols=skype

When parsing this, Launchy tries to execute "env PULSE_LATENCY_MSEC", dropping the part of the exec line after the second '='. An equals sign is prohibited in the path or name of the program, but not the rest of the exec line, see the spec:

http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#exec-variables

Expected behavior: launch the command env PULSE_LATENCY_MSEC=60 skype

Discussion


Log in to post a comment.