Bug#774223: gksu: -e (or -c) key wanted as last of gksu keys

Alex P aplsimple at gmail.com
Tue Dec 30 13:38:26 UTC 2014


Package: gksu
Version: 2.0.2-6
Severity: normal

Dear Sirs!

gksu and gksudo don't process unquoted commands with -/-- keys.

gksu (gksudo) takes these keys for its own.
For example the command
  gksu xterm -geometry 80x32+100+64
does not executed because of the -geometry key of xterm.

You can execute this only as quoted:
  gksu "xterm -geometry 80x32+100+64"
which is not so good in all cases when quotes "'",'"' are heavily
used in the executed command.

For example
  gksu "gnome-terminal --geometry=80x32+100+64 -e "vim 123""
is not equal to the intended
  gnome-terminal --geometry=80x32+100+64 -e "vim 123"
But no problem with
  xterm -e gnome-terminal --geometry=80x32+100+64 -e "vim 123"

We can imagine even more comlex usage of quotes in the command to
be executed by gksu including escaped \", \'.

Our rejected xterm command suggests how to fix the problem of gksu:
  xterm -geometry 80x32+100+64 -e mycommand -mykey1 --mykey2
executes a whole "mycommand -mykey1 --mykey2" in xterm console.

All after -e key is a whole command to be executed by xterm.

By the way, the gnome-terminal command has just the same problem
with its -e key:
  gnome-terminal -e mycomm -mykey1 --mykey2
must be
  gnome-terminal -e "mycomm -mykey1 --mykey2"
to be executed at all.

Happy New Year and many many thanks for all of you debian developers!

Yours faithfully,
aplsimple



-- System Information:
Debian Release: 7.7
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (SMP w/2 CPU cores)
Locale: LANG=ru_RU.utf8, LC_CTYPE=ru_RU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gksu depends on:
ii  libatk1.0-0               2.4.0-2
ii  libc6                     2.13-38+deb7u6
ii  libcairo2                 1.12.2-3
ii  libfontconfig1            2.9.0-7.1
ii  libfreetype6              2.4.9-1.1
ii  libgconf2-4               3.2.5-1+build1
ii  libgdk-pixbuf2.0-0        2.26.1-1
ii  libgksu2-0                2.0.13~pre1-6
ii  libglib2.0-0              2.33.12+really2.32.4-5
ii  libgnome-keyring0         3.4.1-1
ii  libgtk2.0-0               2.24.10-2
ii  libpango1.0-0             1.30.0-1
ii  libstartup-notification0  0.12-1
ii  sudo                      1.8.5p2-1+nmu1

Versions of packages gksu recommends:
ii  gnome-keyring  3.4.1-5

gksu suggests no packages.

-- no debconf information



More information about the pkg-gnome-maintainers mailing list