"Run" dialogue : auto-completion doesn't work with gksudo

Bug #54465 reported by Trouilliez vincent
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNOME Panel
New
Low
gnome-panel (Ubuntu)
Triaged
Wishlist
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gnome-panel

When you press "Alt+F2" you get a little dialogue where you can enter manually the name of a GUI program you want to execute.
There is an auto-completion feature that greatly helps in entering the program name, and I love it.
The problem I noticed is that when the program I want to run requires administrative rights, I need to enter "gksudo" before the name of the program. The problem I experience is that auto-completion works for "gksudo", but NOT for the program name :-(
I think the problem might be that the auto-completion only works for the first word you type. It would be good if it could work for all the words, or at least if it could "special case" gksudo.

Revision history for this message
Sebastien Bacher (seb128) wrote :

It completes the command name, setting as a feature request to support the gksu,gksudo special case

Changed in gnome-panel:
assignee: nobody → desktop-bugs
importance: Untriaged → Wishlist
status: Unconfirmed → Confirmed
Revision history for this message
Marco Dalla Vecchia (marco-dave) wrote :

maybe adding a checkbox saying "run with administrator privileges" or something like that ?
It could be added under the "run in terminal" checkbox, and it would be hidden/disabled for those
users not in the "admin" group (that allows sudo)

Revision history for this message
Trouilliez vincent (vincent-trouilliez-modulonet) wrote :

Hmm, I fear it would just add cluter to the GUI for no real reason. Much better to hack the auto-completetion mechanism to special case gksu[do] IMHO, or, better improve it so that auto-completion works on all words/strings, not just the first one. That would fix the problem properly once and for all.

Revision history for this message
TB2 (gt6) wrote :

I don't know if you are aware, but the same problem is present in the terminal. There is no autocompletition for commands, e.g.

"sudo ge{tab}" will give me "sudo gedit"
but
"gksudo ge{tab}" will just do a system beep.

And this is seriously annoying, especially as people have been called only to use gksudo for gui apps im Gnome from now on ^^

Revision history for this message
Tuomas Aavikko (taavikko) wrote :

Problem still exists
up-to-date intrepid

Running in terminal
sudo ge{tab} will give sudo gedit
gksu ge{tab} gives nothing
gksudo ge{tab} gives nothing

Shouldn't the package be libgksu{tab} (if needed) rather than gnome-panel?

Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :

I think this has nothing todo with GNOME itself, but rather with "bash-completion"

Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :

This bug is about the problems with the run dialog in general: http://bugzilla.gnome.org/show_bug.cgi?id=455560

Changed in gnome-panel:
importance: Undecided → Unknown
status: New → Unknown
Changed in gnome-panel:
status: Unknown → New
Changed in gnome-panel:
status: Confirmed → Triaged
Changed in gnome-panel:
importance: Unknown → Low
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.