For a generic desktop environment, the Exec entry of a .desktop file is not properly parsed, and only the first word is used. Any options or field codes (e.g. %u) are ignored. This breaks app launching if command line options are required and is not compliant with the specification.
Created attachment 91020 [details] "%i" and "%c" field codes handling 1.1.0 version has some handling for "%f", "%F", "%u", "%U" field codes. Proposed patch adds handling for "%i" and "%c" field codes necesary for some .desktop files from kde4 (for example: "Exec=okular %U %i -caption %c").
thanks! I'll try to give it a quick look over soon and commit.
Thanks, adapted another similar approach. http://cgit.freedesktop.org/xdg/xdg-utils/commit/?id=316b9adc05c6d871360afb1195939c5fc975ccff
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.