I am attempting to run nautilus as root but when I run "sudo nautilus" from the terminal, I get the following error:
error: XDG_RUNTIME_DIR not set in the environment.
(nautilus:9341): Gtk-WARNING **: cannot open display:
The issue does not occur when I attempt to run nautilus as non-root. I am using ubuntu 14.04. Does anyone know how I can fix this?
-X
option when starting my ssh session.