(nautilus:13581): Gtk-WARNING **: cannot open display:

Just installed gksu to use gksu nautilus.

When running this command the output after entering password is

(nautilus:13581): Gtk-WARNING **: cannot open display: 

Not sure what caused this but i need to edit the usr folder.

Thanks for any help.

EDIT: Running sudo nautilus output was

error: XDG_RUNTIME_DIR not set in the environment.
(nautilus:15545): Gtk-WARNING **: cannot open display:

This is running in Terminal not over SSH

6

2 Answers

I can easily duplicate your results by opening a terminal via CTRLAltF1 rather than CTRLAltT from within an Xwindows session. nautilus is a graphical application which must run under Xwindows. if you need a file manager to run in a terminal and aren't running Xwindows you might try using mc aka Midnight Commander.

If any part of this answer is unclear, drop me a comment and I'll add clarity as necessary.

Install Synaptic Package Manager.

sudo apt-get install synaptic

Start the program. Search for Nautilus. You will see one of them isn't work correctly. Select for reinstall. Apply it.I had that problem too.

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like