Gtk-WARNING **: cannot open display: :0.0 in centos 6.4 / RHEL

Posted: May 21, 2013 in FX Pipeline, Linux

error

 

 

when i am trying to open gedit from terminal i got Gtk-WARNING

similar to that :-
gedit /etc/httpd/conf.d/subversion.conf
No protocol specified

(gedit:13752): Gtk-WARNING **: cannot open display: :0.0

 

to fix this issue :-
(Non Root)
[rajiv@mx ~]$ xhost +local:root
non-network local connections being added to access control list

With ROOT

[root@mx rajiv]# export DISPLAY=:0.0

Now everything is working fine 🙂

Advertisements
Comments
  1. Johny says:

    In my case i still get the same error even after setting DISPLAY-:0.0
    it says:

    No protocol specified
    Gtk Warning: cannot open display :0.0

    Im on 6.4 CentOS, what should id o?

  2. Fred says:

    Hi there,
    Superb ! I could regain access to, e.g., /etc/fstab using a GUI editor like gedit.

    To Johny : maybe DISPLAY=:0.0 works better than DISPLAY-:0.0

    Thanks a lot, Rajiv !

    • looby says:

      Many thanks Rajiv–was seriously worried for a few moments this morning as I thought I’d lost Synaptic, Geany, etc. etc. Excellent post.

  3. falanca says:

    thanks, it’s solved my issue…

  4. […] Gtk-WARNING **: cannot open display: :0.0 in centos 6.4 … – May 21, 2013 · when i am trying to open gedit from terminal i got Gtk-WARNING. similar to that :-gedit /etc/httpd/conf.d/subversion.conf No protocol specified (gedit …… […]

  5. John says:

    Save me… This is great even a year later.

  6. Richie Richard Rajkumar says:

    You are just awesome…. Thanks for the help…. I was getting frustrated because of this issue…. and your solution just worked perfect.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s