How to test if X-server is there
- From: G Hasse <gh raditex se>
- To: gtk-app-devel-list gnome org
- Subject: How to test if X-server is there
- Date: Tue, 13 Jul 2004 09:43:32 +0000
Hello,
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?
-- 
Göran Hasse
----------------------------------------------------------------
Göran Hasse            email: gh raditex se     Tel: 08-6949270
Raditex AB             http://www.raditex.se    Fax: 08-4420570
Sickla Alle 7, 1tr                              Mob: 070-5530148
131 34  NACKA, SWEDEN                         OrgNr: 556240-0589
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]