Bug#599233: /usr/bin/gksudo: do not swallow stderr output
Yaroslav Halchenko
debian at onerussian.com
Tue Oct 5 22:34:08 UTC 2010
Package: gksu
Version: 2.0.2-3
Severity: wishlist
File: /usr/bin/gksudo
Now it is close to impossible to figure out what went wrong while running
the command since std error gets swallowed into a buffer:
$> gksudo "apt-get install -q asdf" ; echo $?
Reading package lists...
Building dependency tree...
Reading state information...
(gksudo:2664): GLib-CRITICAL **: g_str_has_prefix: assertion `str != NULL' failed
100
$> gksudo -d "apt-get install -q asdf" ; echo $?
No ask_pass set, using default!
xauth: /tmp/libgksu-Mrcj37/.Xauthority
STARTUP_ID: gksudo/apt-get install -q asdf/2697-0-novo_TIME0
cmd[0]: /usr/bin/sudo
cmd[1]: -H
cmd[2]: -S
cmd[3]: -p
cmd[4]: GNOME_SUDO_PASS
cmd[5]: -u
cmd[6]: root
cmd[7]: --
cmd[8]: apt-get
cmd[9]: install
cmd[10]: -q
cmd[11]: asdf
Reading package lists...
Building dependency tree...
Reading state information...
buffer: -E-
buffer: -: Unable to locate package asdf-
buffer: --
...
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (901, 'unstable'), (900, 'testing'), (300, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages gksu depends on:
ii libatk1.0-0 1.30.0-1 The ATK accessibility toolkit
ii libc6 2.11.2-2 Embedded GNU C Library: Shared lib
ii libcairo2 1.8.10-5 The Cairo 2D vector graphics libra
ii libfontconfig1 2.8.0-2.1 generic font configuration library
ii libfreetype6 2.4.2-1 FreeType 2 font engine, shared lib
ii libgconf2-4 2.28.1-3 GNOME configuration database syste
ii libgksu2-0 2.0.13~pre1-1 library providing su and sudo func
ii libglib2.0-0 2.24.1-1 The GLib library of C routines
ii libgnome-keyring0 2.30.1-1 GNOME keyring services library
ii libgtk2.0-0 2.20.1-1 The GTK+ graphical user interface
ii libpango1.0-0 1.28.1-1 Layout and rendering of internatio
ii libstartup-notification0 0.10-1 library for program launch feedbac
ii sudo 1.7.2p7-1 Provide limited super user privile
Versions of packages gksu recommends:
ii gnome-keyring 2.30.3-1 GNOME keyring services (daemon and
gksu suggests no packages.
-- no debconf information
More information about the pkg-gnome-maintainers
mailing list