Re: Gtk-warning: cannot open display
- From: "Jean-Christophe Berthon" <jean-christophe berthon cgey com>
- To: "Johan N-P" <johan_np post netlink se>, <gtk-list gnome org>
- Subject: Re: Gtk-warning: cannot open display
- Date: Wed, 11 Jul 2001 09:14:04 +0200
did you try to open another term and logon as root (for example, or even try
it with your own login name) and then type this:
xhost +
then try to run your program. Is it still showing the same problem?
Best regards,
---
Jean-Christophe Berthon
----- Original Message -----
From: "Johan N-P" <johan_np post netlink se>
To: <gtk-list gnome org>
Sent: Wednesday, July 11, 2001 1:07 AM
Subject: Gtk-warning: cannot open display
> Hi all,
>
> I have a really weird problem. Until yesterday my gtk program worked
> fine, but suddenly it stopped working. Now it just tells me
> "gtk-warning: cannot open display" when I try to run it.
> $DISPLAY is :0.0 as it should be. And yes, I'm running it as the user
> who started X.
>
> When I compile and run other gtk programs they work fine, it's just my
> program that behaves like this. I stepped through it in gdb to see where
> it happens, and I found that it's always gtk_init that gives this error
> without any apparent reason (there is absolutely nothing wrong with argc
> and argv or the way I supply them).
>
> What could tbe the reason for this?
>
> Johan
>
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]