Bug#244066: gksu menu entry incorrectly uses hints
Jon Dowland
Jon Dowland <jon.dowland@durham.ac.uk>, 244066@bugs.debian.org
Fri, 16 Apr 2004 14:28:57 +0100
This is a multi-part MIME message sent by reportbug.
--===============0179193833==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Package: gksu
Version: 1.0.5-1
Severity: normal
The gksu package includes a menu file with a long sentence for a hint.
When hints are turned on, this can result in the menu system creating
the following structure:
Apps -> ...
System -> ...
... Opens a dialog where you can type a command to be...
...
The attached patch changes the existing hint to a 'description' field,
which I feel was the original intention.
I also added a hint field which may put gksu under the folder 'Admin'
within system, which seemed appropriate. The Admin sub-menu is also used
by ( at least) lilo.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.25
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8
Versions of packages gksu depends on:
ii libatk1.0-0 1.4.1-1 The ATK accessibility toolkit
ii libc6 2.3.2.ds1-11 GNU C Library: Shared libraries an
ii libgksu0 1.0.5-1 a graphical fronted to su library
ii libglib2.0-0 2.2.3-1 The GLib library of C routines
ii libgtk2.0-0 2.2.4-3 The GTK+ graphical user interface
ii libpango1.0-0 1.2.5-2.1 Layout and rendering of internatio
-- no debconf information
--===============0179193833==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="gksu.menu.diff"
--- /usr/lib/menu/gksu 2004-04-15 16:34:30.000000000 +0100
+++ code/gksu 2004-04-16 14:23:20.000000000 +0100
@@ -2,7 +2,8 @@
needs=x11\
section=Apps/System\
title="X-Terminal as root (GKsu)"\
-hints="Runs an X terminal application. Uses GKsu to ask the password."\
+description="Runs an X terminal application. Uses GKsu to ask the password."\
+hints="Admin"\
icon="/usr/share/pixmaps/gksu-debian.xpm"\
command="/usr/bin/gksu -u root /usr/bin/x-terminal-emulator"
@@ -10,6 +11,7 @@
needs=x11\
section=Apps/System\
title="Run as different user (GKsu)"\
-hints="Opens a dialog where you can type a command to be run as a given user."\
+description="Opens a dialog where you can type a command to be run as a given user."\
icon="/usr/share/pixmaps/gksuexec-debian.xpm"\
+hints="Admin"\
command="/usr/bin/gksuexec"
--===============0179193833==--