After having updated to 17.10 I noticed a problem to run sudo nautilus. In user mode it works
ilan@ilan-Desktop:~$ nautilus
Initializing nautilus-dropbox 2015.10.28
^C
ilan@ilan-Desktop:~$ sudo nautilus
Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect: Connection refused
(nautilus:27798): Gtk-WARNING **: cannot open display: :0
I tried to look around and found https://bbs.archlinux.org/viewtopic.php?id=230828 There is a suggestion that perhaps xorg.conf is causing problems but I see no such file in /etc/X11/xorg.conf.d. There is xorg.conf.failsafe from April 2016.
Thanks for any suggestions, Ilan
echo $XDG_SESSION_TYPE
. – pomsky Oct 28 '17 at 13:25