Comment 1 for bug 330533

Revision history for this message
Russ Allbery (rra-debian) wrote : Re: [Bug 330533] [NEW] lintian should not complain about gksu

Lars Wirzenius <email address hidden> writes:

> My package, computer-janitor-gtk, has a .desktop file that calls gksu.
> lintian complains:
>
> W: computer-janitor-gtk: su-wrapper-not-su-to-root
> /usr/share/applications/computer-janitor-gtk.desktop gksu
>
> It further provides the following explanation:
> "The menu item or desktop file command uses an su wrapper other than
> su-to-root. On Debian systems, please use su-to-root -X, which will pick
> the correct wrapper based on what's installed on the system and the
> current desktop environment. Using su-to-root is also important for Live
> CD systems which need to use sudo rather than su. su-to-root permits
> global configuration to use sudo."
>
> Ubuntu does not contain su-to-root, and gksu seems to be the right way
> to invoke things as root in GNOME on Ubuntu. Lintian should not complain
> in this case.

I'm fairly sure that Ubuntu does contain su-to-root. It's in the menu
package. I'm also fairly sure that the point above about Live requiring a
way to override programs to use sudo still applies and gksu gets in the
way of doing that.

--
Russ Allbery (<email address hidden>) <http://www.eyrie.org/~eagle/>