[Foo2zjs-maintainer] Bug#444850: Bug#444850: Bug#444850: Bug#444850: foo2zjs: Please, provide a menu file for hannah
Michael Koch
konqueror at gmx.de
Tue Oct 2 05:58:15 UTC 2007
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
More information about the Foo2zjs-maintainer
mailing list