Ubuntu – I am getting the following errors while using the sudo nautilus command as root. Please suggest a way out

nautilus

root@catherine:/home/catherine/Downloads/cmake-3.8.0-rc2# sudo nautilus

(nautilus:639): Gtk-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

** (nautilus:639): CRITICAL **: Another desktop manager in use; desktop window won't be created
Nautilus-Share-Message: Called "net usershare info" but it failed: Failed to execute child process "net" (No such file or directory)

Best Answer

  • If you want to use nautilus as root you should use gksudo nautilus instead as the 'gk' provides a graphical front-end for sudo meaning it can be used to safely launch programs that require a GUI