[Foo2zjs-maintainer] Bug#444850: Bug#444850: Bug#444850: foo2zjs: Please, provide a menu file for hannah

Nelson A. de Oliveira naoliv at debian.org
Fri Oct 5 02:14:22 UTC 2007


Hi Steffen (and foo2zjs package developers)!

Sorry for the delay.

On 10/2/07, Steffen Joeris <steffen.joeris at skolelinux.de> wrote:
> Thanks for notifying us about this. I somehow forgot about the menu file,
> shame on me :/

No problem. Relax :-)

> 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)

It seems that it's wrong the command "if [ -n `which kdesu` ] ; then
`which kdesu` /usr/bin/hannah : else `which gksu` /usr/bin/hannah ;
fi"

Running it from bash it doesn't displays gksu (I don't have kdesu
installed). It just opens hanna directly.

Exchanging the order of gksu and kdesu like this

if [ -n `which kdesu` ] ; then `which gksu` /usr/bin/hannah : else
`which kdesu` /usr/bin/hannah ; fi

then it works. I don't know how correct it is (I am not a script guru,
sorry), but it works.

Now I (think that I) know why the error that I reported on #444852
happened. gksu wasn't called and it seems that I was trying
download/install the firmware as a normal user.

And yes, it works if we use this menu file:

?package(foo2zjs):needs="x11" \
        section="Applications/System/Administration" \
        title="Hannah firmware downloader" \
        longtitle="Foo2zjs firmware downloader and installer" \
        command="if [ -n `which kdesu` ]; then `which gksu`
/usr/bin/hannah : else `which kdesu` /usr/bin/hannah; fi"

(but again, I don't know how valid it is)

And just a doubt: is it necessary to use `which gksu` instead calling
it directly with /usr/bin/gksu? It doesn't seem that it will change
where it's located, right?

> Nelson, please feel free to keep reporting bugs against hannah, it is very
> helpful to get some feedback.

We have a lot of HP 1020 printers here. You can contact me if you need
help, testing or something else. It will be a pleasure to help.

Thank you very much!

Best regards,
Nelson





More information about the Foo2zjs-maintainer mailing list