"Open in terminal" not working on nautilus as root
When using natilus as root, open in terminal used to work as using with any user. However, when I press open in terminal when using nautilus as root now, it does nothing.
How to solve it?
The error:
GLib-GObject-CRITICAL **: g_object_set_data: assertion 'G_IS_OBJECT (object)' failed
Putting aside any possible damage you've done via sudo nautilus command you could just install & use the nautilus extension nautilus-admin
, requires restarting nautilus after install
sudo apt-get install nautilus-admin
It provides
* Open as Administrator: opens a folder in a new Nautilus window
running with administrator (root) privileges.
* Edit as Administrator: opens a file in a Gedit window running
with administrator (root) privileges.
Does so thru a policykit policy.