gksudo argument handling differs from sudo

Bug #13549 reported by Sven Herzberg
8
Affects Status Importance Assigned to Milestone
gksu (Ubuntu)
Invalid
Low
Sebastien Bacher

Bug Description

1. Open Applications >> Launch...
2. Enter "gksudo gedit /etc/fstab"
3. See that it fails

Revision history for this message
Matt Zimmerman (mdz) wrote :

gksudo accepts only one argument, not several. You need to use:

gksudo "gedit /etc/fstab"

to do what you want. As far as I can tell, this is intentional, though I agree
that it would be less surprising if it behaved like sudo

Revision history for this message
Gustavo Noronha Silva (kov) wrote :

My main focus has been su from the beginning; gksudo used to behave like sudo
versions before, but when I rewrote the argument parsing code I decided to stick
to the su-like parsing. I have no time right now to change this, and am not sure
this would be a good thing this close to a Debian release, but I am willing to
look at patches, if they come up.

Revision history for this message
Jeroen (jeroenubuntu) wrote :

I can confirm this, but If I do "gksudo gedit /etc/fstab" it opens: ~/'/etc/fstab'

It should work like sudo.

Revision history for this message
Gustavo Noronha Silva (kov) wrote :

This bug has been marked as a duplicate of bug 16966.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.