Public bug reported:

Binary package hint: gksu

when using gksudo in a script (to get a popup asking password) or at
comandline, gksudo graps to many options.

eksample.
running "sudo -K aptitude safe-upgrade -y" results in the following: 
sudo uses the -K option (forget password after the command has been executed) 
and starts aptitude  safe-upgrade. aptitude gets the -y option (assume yes ) 
this is all fine and as it should be. it is also possible to use gksudo.
using same (or almost same command with gksudo)
"gksudo aptitude update" this works, and you are prompted for your password in 
a graphical popup  however if i want aptitude to receive the -y option "gksudo 
aptitude safe-upgrade -y" then it is gksudo that grab the -y option and not 
aptitude. 

you can try it your selves all commands using gksudo and options gksudo
grab all the options and not just the options that are mindet at gksudo

therefore
"sudo dpkg -i pakket.deb" works but "gksudo dpkg -i pakket.deb" does not as it 
is executed as "gksudo -i dpkg pakket.deb" gksudo doesn't recognise the -i 
option and dpkg is missing the option

"sudo aptitude safe-upgrade -y" works but "gksudo aptitude safe-upgrade
-y" is executed as "gksudo -y aptitude safe-upgrade" and gksudo is
complaining that it doesn't recognise the -y option.

therefore this must be an bug in gksudo

** Affects: gksu (Ubuntu)
     Importance: Undecided
         Status: New

-- 
gksudo grab to many options
https://bugs.launchpad.net/bugs/570202
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to