Results 1 to 7 of 7

Thread: Gtk-WARNING **: cannot open display: :0.0

  1. #1
    Join Date
    Sep 2009
    Beans
    62
    Distro
    Ubuntu 12.04 Precise Pangolin

    Gtk-WARNING **: cannot open display: :0.0

    When I become root and try to run gedit, I get the error:

    No protocol specified

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


    This does not happen from my user profile....xhost + actually solves the issue....so I guess I just need to add the host root to the list of hosts allowed to access the x server...

    I try xhost +root......but that does not work....

    how do I....?????

  2. #2
    Join Date
    Aug 2007
    Beans
    690

    Re: Gtk-WARNING **: cannot open display: :0.0

    try putting

    export DISPLAY=:0.0

    into your /root/.bashrc

    create the file if it does not exist

    if I recall, thats what fixed the same problem i was having

  3. #3
    Join Date
    Sep 2009
    Beans
    62
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Gtk-WARNING **: cannot open display: :0.0

    Tried that..not working....

    Besides, sometimes when I switch on the comp, I see just two dots on the top part of the screen..and I have to restart to bring everything back to normal..

  4. #4
    Join Date
    Sep 2009
    Beans
    62
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Gtk-WARNING **: cannot open display: :0.0

    I got the following from google..it seems to work..

    echo $DISPLAY # you'll be needing this value 3 lines below
    sudo -i # or "su -" on older Slackwares
    xauth merge ~alien/.Xauthority # use your own username here instead of "alien"
    export DISPLAY=:0.0 # use the value of DISPLAY you've seen 3 lines before

    I still have to wait and see if I still get the problem at startup.......

  5. #5
    Join Date
    Apr 2008
    Location
    Belgium
    Beans
    124
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Gtk-WARNING **: cannot open display: :0.0

    instead of:

    Code:
    sudo su
    gedit
    (which I assume you did), try:

    Code:
    sudo gedit
    which should work.

  6. #6
    Join Date
    Jun 2007
    Beans
    14,897

    Re: Gtk-WARNING **: cannot open display: :0.0

    Use gksu for graphical applications....
    Code:
    gksu gedit

  7. #7
    Join Date
    Jan 2010
    Beans
    165

    Re: Gtk-WARNING **: cannot open display: :0.0

    Warnings dont matter. Get used to them.
    When it says ERROR, then you care.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •