Gediting as root
To open a file with root permissions using gedit you normally would have to drop to terminal and type gksudo gedit filename.
Waiting for devs to implement policykit into gedit too, you can install an handy nautilus plugin which makes appear a context menu entry to “open as administrator” on every file.
Installing is as simple as typing:
sudo apt-get install nautilus-gksu
Hardy’s package, sadly, has a bug that prevents the entry for appearing. If you don’t see the entry appearing even after restarting X here’s the fix:
sudo cp /usr/lib/nautilus/extensions-1.0/libnautilus-gksu.so /usr/lib/nautilus/extensions-2.0/ killall nautilus
The entry should now appear. Worth of noting that this workaround could be disabled from future updates (although probably next update will just fix the bug)
