Bug#479829: Use "su-to-root -X" as su wrapper in menu/desktop files

Chris Lamb chris at chris-lamb.co.uk
Tue May 6 20:17:11 UTC 2008


Package: system-config-printer
Severity: important
Version: 0.7.81-3
User: debian-live-devel at lists.alioth.debian.org
Usertags: su-to-root
Tags: patch

Hi,

The menu item or .desktop file:

  /usr/share/applications/redhat-system-config-printer.desktop
 
uses an su wrapper other than su-to-root such as "gksu" or "kdesu". 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).
This change still important even if the package is targetted at (or uses a
widget toolkit closely related to) a particular desktop environment.

The solution is trivial:

 - Exec=gksu /usr/sbin/my-binary
 + Exec=su-to-root -X /usr/sbin/my-binary

Lintian reports this error as "su-wrapper-not-su-to-root".


Regards,

-- 
Chris Lamb, UK                                       chris at chris-lamb.co.uk
                                                            GPG: 0x634F9A20
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20080506/80d2f51d/attachment.pgp 


More information about the pkg-gnome-maintainers mailing list