Bug#525011: gksu: option parsing is not well documented
Ximin Luo
xl269 at cam.ac.uk
Tue Apr 21 13:55:00 UTC 2009
Package: gksu
Version: 2.0.2-1
Severity: normal
took me a while to figure out, because the manual mentions -- nowhere, instead saying
gksu [-u <user>] [options] <command>
implying that once it encounters something it thinks is a command, everything after it is
also treated as a command. this is clearly not the case, as below (empty is just a file):
infinity0 at xl269:~$ gksu --sudo-mode -- ls -la empty
-rw-r--r-- 1 infinity0 infinity0 0 2009-03-24 23:08 empty
infinity0 at xl269:~$ gksu --sudo-mode ls -la empty
empty
infinity0 at xl269:~$ gksu --su-mode -- ls -la empty
-rw-r--r-- 1 infinity0 infinity0 0 2009-03-24 23:08 empty
infinity0 at xl269:~$ gksu --su-mode ls -la empty
ls: cannot access empty: No such file or directory
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'testing-proposed-updates'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.29-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages gksu depends on:
ii gnome-keyring 2.24.1-2 GNOME keyring services (daemon and
ii libatk1.0-0 1.24.0-2 The ATK accessibility toolkit
ii libc6 2.9-4 GNU C Library: Shared libraries
ii libcairo2 1.8.6-2+b1 The Cairo 2D vector graphics libra
ii libfontconfig1 2.6.0-3 generic font configuration library
ii libfreetype6 2.3.9-4 FreeType 2 font engine, shared lib
ii libgconf2-4 2.24.0-7 GNOME configuration database syste
ii libgksu2-0 2.0.9-1 library providing su and sudo func
ii libglib2.0-0 2.20.0-2 The GLib library of C routines
ii libgnome-keyring0 2.24.1-2 GNOME keyring services library
ii libgtk2.0-0 2.14.7-5 The GTK+ graphical user interface
ii libpango1.0-0 1.24.0-3+b1 Layout and rendering of internatio
ii libstartup-notificatio 0.9-1 library for program launch feedbac
ii sudo 1.7.0-1 Provide limited super user privile
ii zlib1g 1:1.2.3.3.dfsg-13 compression library - runtime
gksu recommends no packages.
gksu suggests no packages.
-- debconf-show failed
More information about the pkg-gnome-maintainers
mailing list