Public bug reported:
Binary package hint: gksu
For me it seems rather strange that sudo and gksudo parses it's
arguments in different ways. After hours of battling, I find that a
magic "--" is needed for gksudo in order for it to replace a sudo based
command.
The names of the binaries suggests that they can be used in replacement
of one another, with the difference that sudo uses readline and gksudo a
dialogue box.
Currently, replacing the following sudo with gksudo in the following Nautilus
script...
sudo chown -v `whoami`:`whoami` "$@" | zenity --text-info --height=100
--width=300;
... generates an output about the correct usage:
GKsu version 2.0.0
Usage: gksudo [-u <user>] [options] <com...
Instead, we have to use:
gksudo -- chown -v `whoami`:`whoami` "$@" | zenity --text-info --height=100
--width=300;
This would be acceptable (since this kind of behavior is hard to change
now...) only if this difference was mentioned in "man gksudo" and/or
"man sudo", but currently, it isn't.
It isn't enough even to know generally about the "magic --", since "sudo
--" does not work...
** Affects: gksu (Ubuntu)
Importance: Undecided
Status: New
--
No mention in "man gksudo" that "gksudo --" is requred in order to correctly
replace "sudo" in commands
https://bugs.launchpad.net/bugs/187814
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs