-   Linux - Newbie (
-   -   gtk warning cannot open display (

bosewicht 05-31-2004 04:01 AM

gtk warning cannot open display
after a recent system upgrade and install of gnome i get this error

gnome-session:164 GTK warning cannot open display

anyone have any idea what this means

adamwenner 05-31-2004 09:25 PM

this means that gtk does not know where your GUI (aka X-Server) is running, your best bet is to run the following command

export DISPLAY=:0

if this works, add that file to your ~/.bashrc file

echo "export DISPLAY=:0" >> ~/.bashrc

sanemanmad 03-10-2010 08:53 PM

Solved my issue.
Thanks for the tip! I wrote this script to generate pdf reports on remote hosts using ksar (Java headless) and every time i would execute it would fail, unless i was logged in and ran from my own user account which i wanted it to run from a non-user account. issue solved by exporting the display.

All times are GMT -5. The time now is 11:23 AM.