.desktop files

BuraphaLinux Server buraphalinuxserver at gmail.com
Thu May 10 11:42:34 CEST 2007


Hello,

I am attempting to add some /usr/share/applications/whatever.desktop files
to get more applications added to menus.  I have a problem with Exec
lines that have arguments like this:

Exec=app -arg1 -arg2 %f

All arguments are lost and when app is called it has no arguments.  I
checked this with having the Exec call a shell script and the shell
script just prints ${@}.

I tried various different quoting styles like

Exec="app -arg1 arg2" %f

and

Exec="app -arg1 arg2 %f"

and none of them work.  I am using XFCE 4.4.1 compiled from source.
Here is the file I was working with:

-----8< begin draw.deskstop 8<------
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Terminal=false
Icon=draw
Type=Application
Categories=Office;Application;
Exec=openoffice -draw %f
MimeType=application/vnd.oasis.opendocument.graphics;application/vnd.oasis.opendocument.graphics-template;application/vnd.sun.xml.draw;application/vnd.sun.xml.draw.template;application/vnd.stardivision.draw
Name=OpenOffice Draw
Comment=Create and edit drawings, flow charts, and logos by using Draw.
-----8< end draw.desktop 8<------

-----8< begin openoffice 8<------
#!/bin/sh
printf "called with \"%s\"\n" "${@}"
exit 0
-----8< end openoffice 8<------

The menu entry shows up, the icon is good, but the '-draw' is always
lost.  The openoffice script will always print:

called with ""

on the console.  What am I doing wrong?

BLS



More information about the Xfce mailing list