Is it possible to automatically launch gksudo whenever I open a text file without write permissions in Nautilus? I often need to edit my /etc/hosts file and sometimes I forget to right click and select "Open as administrator".
Tell me more
×
Ask Ubuntu is a question and answer site for
Ubuntu users and developers. It's 100% free, no registration required.
Paste that in a file, make executable, and set as default to open whatever files you like. Change the variables if you have a different editor or sudo program.. (Personally, I like gksu-polkit, from the package of the same name, better than gksudo, just because it doesn't grab my screen.) I assume you know how to do all that; I'm more than happy to help if you don't. |
|||
|
|
nautilus-gksu, which adds an "Open as administrator" item to the context menu, or are you already using it and want a way to do this without using the context menu? – htorque Jan 9 '11 at 15:56