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".
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.