(nautilus:13581): Gtk-WARNING **: cannot open display:
15,548
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.
Related videos on Youtube
![Carter Roeser](https://lh6.googleusercontent.com/-EILmUlAPbBc/AAAAAAAAAAI/AAAAAAAAACI/IWILIqfmvZ0/photo.jpg?sz=256)
Author by
Carter Roeser
Updated on September 18, 2022Comments
-
Carter Roeser almost 2 years
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 waserror: XDG_RUNTIME_DIR not set in the environment. (nautilus:15545): Gtk-WARNING **: cannot open display:
This is running in Terminal not over SSH
-
Cbhihe almost 9 yearsActually, before you install new things (mind you
synaptic
is highly recommendable), can you try something from terminal ? .... (A) to open a Gnome terminal window, type inCTRL+ALT+T
; (B) type insudo nautilus
then enter your sudo-password - report whether nautilus opens or any error message. (C) still in terminal, type innautilus --version
and report on the version number you get for Gnome Nautilus. -
Cbhihe almost 9 yearsBTW I run Trusty 14.04.3 LTS and I have no problem opening nautilus with
gksu
. No matter. Since you are new here, to report, you can just edit your own question: At the end of your original question, write "EDIT: [whatever additional detail you want to add. Write precisely if you can.]". Tx -
Carter Roeser almost 9 years@Cbhihe Version output is: "GNOME nautilus 3.10.1"
-
muru almost 9 yearsAre you running over SSH or something?
-
Cbhihe almost 9 years@muru: Yes, the fact that XDG_RUNTIME_DIR is not correctly set to
/run/user/[dddd]
has caught my attention too. It looks like the command is parsed on a different machine or at least in an environment different from that of the user emitting the command. Somehow I doubt that SSH 's being used though. It seems we are missing something important. -
Carter Roeser almost 9 years@muru I am running directly off of Ubuntu Terminal.
-
-
Carter Roeser almost 9 yearsA couple nautilus packages needed to be upgraded but that didnt fix the problem.
-
al0s almost 9 yearsDid you reinstall it or just upgrade? I suggest you to reinstall. If you get no chance after that just reinstall all nautilus. It must be work.
-
Carter Roeser almost 9 yearsI'll look into that and see if anything helps.