Re: How to test if X-server is there



Le mar 13/07/2004 Ã 11:43, G Hasse a Ãcrit :

Hello,

hi,

I have an application that will display its content on
a remote X-server. Can I test if the X-server is up
and running.

Something in line with

     if ( ( display=XOpenDisplay(display_name)) == NULL )
        {
                (void) fprintf( stderr,
                        "basicwin: cannot connet to X server %s\n",
                                XDisplayName(display_name));
                        exit ( -1 );
        }
    
but from within Gtk?

with something like: gdk_x11_lookup_xdisplay ()?

bye





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]