Friday, March 4, 2011

Gtk-warnning ** : can not open display or ** WARNING ** can not open display

The problem is with two environment variables DISPLAY and XAUTHORITY

$ su -


# export DISPLAY=0:0

# export XAUTHORITY=/home/username/.Xauthority

to verify, run a graphical program from terminal. e.g.;

# xeyes

No comments:

Post a Comment

There was an error in this gadget