xdg-open ignores static arguments in .desktop files
Submitted by sam..@..il.com
Assigned to Jonathan Blandford Blandford @jrb
Description
Observed on Ubuntu with xdg-open 1.0.2
I created a custom .desktop, placing it in ~/.local/share/applications and associated it to a few filetypes that I'm interested in.
For the sake of simplicity lets say the custom launcher is just supposed to echo the name of the file it is handed, adding a fixed parameter:
Exec: echo BOO
When I attempt to open my custom file (which is resolving the desktop correctly):
xdg-open myfile.fommil
EXPECTED
BOO myfile.fommil
OBSERVED
myfile.fommil
http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#exec-variables says that Exec takes arguments that are space separated.
WORKAROUND
One must create a script that takes no parameters and adds all the extra fixed parameters (e.g. a script that calls 'echo BOO $*')