On Tue, Oct 02, 2007 at 02:06:42PM +1000, Steffen Joeris wrote: > Hi Nelson > > > I am wanting something like this, to be installed as > > /usr/share/menu/foo2zjs: > > > > ?package(foo2zjs):needs="x11" \ > > section="Applications/System/Administration" \ > > title="Hannah firmware downloader" \ > > longtitle="Foo2zjs firmware downloader and installer" \ > > command="/usr/bin/hannah > > > > I am in doubt if it belongs to the "Administration" class. Also, the > > title and longtitle could be improved. > Thanks for notifying us about this. I somehow forgot about the menu file, > shame on me :/ > Does anyone know or want to try out, if we can use the same line for the > command field in the menu file, than the exec field in the .desktop file? > (exec=if [ -n `which kdesu` ] ; then `which kdesu` /usr/bin/hannah : else > `which gksu` /usr/bin/hannah ; fi)
I wasnt able to test it but the Debian menu policy says the following: The command field holds the command that should be executed when the menu entry is selected. Commands will be executed with `sh -c' using execl("/bin/sh","sh","-c",command) or the equivalent. I think this implies that it works. It should just work as KDE does the same with the commands from the desktop files. Cheers, Michael -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]