1
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)
Arronical
  • 19,653
  • 18
  • 73
  • 128
Dr. Cat MD
  • 11
  • 2
  • 1
    I suggest never using `sudo nautilus`. – Pilot6 Mar 06 '17 at 14:34
  • 5
    Possible duplicate of [What is the difference between "gksudo nautilus" and "sudo nautilus"?](http://askubuntu.com/questions/11760/what-is-the-difference-between-gksudo-nautilus-and-sudo-nautilus) – karel Mar 06 '17 at 14:37
  • 1
    @Pilot6: Well, `sudo -H nautilus` may be useful. However, I had a reason to test it the other day and found that it doesn't work properly on 16.10 (but works on 16.04). – Gunnar Hjalmarsson Mar 06 '17 at 14:38
  • 1
    @karel: Same problem in 16.10 with `gksudo nautilus`, btw. – Gunnar Hjalmarsson Mar 06 '17 at 14:40

1 Answers1

3

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

LinuxSailorTech
  • 794
  • 1
  • 7
  • 24