Bug#479818: Use "su-to-root -X" as su wrapper in menu/desktop files
Chris Lamb
chris at chris-lamb.co.uk
Tue May 6 20:14:13 UTC 2008
Package: gnome-utils
Severity: important
Version: 2.20.0.1-2
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/gnome-system-log.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/fd7d1a48/attachment.pgp
More information about the pkg-gnome-maintainers
mailing list