This bug seems to be a rite of passage for people using gksudo for the
first and potentially last time. For other people passing by this bug
report, just separate the gksudo options from the command with two
dashes:

gksudo -- safe-upgrade -y

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gksu in Ubuntu.
https://bugs.launchpad.net/bugs/570202

Title:
  gksudo grab to many options

Status in “gksu” package in Ubuntu:
  New

Bug description:
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gksu/+bug/570202/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to