Gtk-WARNING **: cannot open display: :0.0
July 15, 2011 Leave a comment
Connect as a normal user(I mean user who is logged into the x server).
!!!Not as a root user!!!
And allow any local user to load X displays:
$ xhost +
To disable it run the following:
$ xhost –