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)
Asked
Active
Viewed 1,192 times
1

Arronical
- 19,893

Dr. Cat MD
- 11
1 Answers
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
-
-
@GunnarHjalmarsson good point however I am using 16.04 and it worked fine for me also when I started writing my answer your comments had not yet appeared – LinuxSailorTech Mar 06 '17 at 14:52
-
Nothing wrong with your answer. ;) It's probably a bug, and I just provided it as additional info. – Gunnar Hjalmarsson Mar 06 '17 at 14:54
sudo nautilus
. – Pilot6 Mar 06 '17 at 14:34sudo -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:38gksudo nautilus
, btw. – Gunnar Hjalmarsson Mar 06 '17 at 14:40