Wrox Home  
Search P2P Archive for: Go

  Return to Index  

gtkplus_gnome thread: need your help in GTK+ code compiling


Message #1 by "sachin" <sachins50@y...> on Fri, 16 Aug 2002 10:30:29
> I tried to run that file using following command
$> ./intro

> but I got following message

> Gtk-WARNING **: cannot open display: 

> I could not rectify this problem.
>Pls. could anyone tell me where is the problem!
>My OS is Red hat Linux 7.1 and kernel - 2.4.2-2
>Pls tell me what is required to solve this problem.

> Waiting for some guidelines from all experts

> sachin

Hello sachin

Are you running the program while being logged in as root? When you start X
(or Gnome / KDE etc.), the person you log in as "owns" the display. If you
try to start a program that needs X, while being logged in as another user
than the one that started X, you might get an error like this ...

regards, Søren T.



  Return to Index