Bug#284596: gksu: incorrect use of hints in menufile

Jon Dowland Jon Dowland <bugs@alcopop.org>, 284596@bugs.debian.org
Tue, 07 Dec 2004 12:48:05 +0000


This is a multi-part MIME message sent by reportbug.

--===============1529096570==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: gksu
Version: 1.2.2-1
Severity: minor
Tags: patch

The menu file supplied with gksu puts long english textual descriptions
of each program in the hints field. The hints field is supposed to be
used for keywords. When hints are turned on in the menu system, large
menus can be broken down into sub menus using the hints.

So, with the provided menu file, the following can be created by the
menu system (with hints turned on)

Apps -> System -> Opens a dialog where you can type a command to be run \
                  as a given user. -> Run as different user (GKsu)
Apps -> System -> Runs an X terminal application. Uses GKsu to ask the \
                  password. -> X-Terminal as root (GKsu)

I've changed the hints to 'Change User' which seemed to be the most
generic and descriptive hint I could think of. The following menu
structure thus results:

Apps -> System -> Change User -> Run as different user (GKsu)
                              -> X-Terminal as root (GKsu)

Attached is the entire menu file; if you really prefer a patch just
shout.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.27-1-686
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)

Versions of packages gksu depends on:
ii  libatk1.0-0               1.8.0-3        The ATK accessibility toolkit
ii  libc6                     2.3.2.ds1-18   GNU C Library: Shared libraries an
ii  libgksu1.2-0              1.2.5a-1       library providing su and sudo func
ii  libgksuui1.0-0            1.0.3-2        a graphical fronted to su library
ii  libglib2.0-0              2.4.7-1        The GLib library of C routines
ii  libgtk2.0-0               2.4.13-1       The GTK+ graphical user interface 
ii  libpango1.0-0             1.6.0-3        Layout and rendering of internatio
ii  libx11-6                  4.3.0.dfsg.1-8 X Window System protocol client li
ii  xlibs                     4.3.0.dfsg.1-8 X Window System client libraries m

-- no debconf information

--===============1529096570==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="gksu"

?package(gksu):\
needs="x11"\
section="Apps/System"\
title="X-Terminal as root (GKsu)"\
hints="Change User"\
icon="/usr/share/pixmaps/gksu-debian.xpm"\
command="/usr/bin/gksu -u root /usr/bin/x-terminal-emulator"

?package(gksu):\
needs="x11"\
section="Apps/System"\
title="Run as different user (GKsu)"\
hints="Change User"\
icon="/usr/share/pixmaps/gksuexec-debian.xpm"\
command="/usr/bin/gksuexec"

--===============1529096570==--