If unable to open an X11 display mention that X needs to be running
authorChris Morgan <cmorgan@alum.wpi.edu>
Fri, 30 Jan 2004 22:54:39 +0000 (22:54 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 30 Jan 2004 22:54:39 +0000 (22:54 +0000)
and that $DISPLAY must be set correctly.

dlls/x11drv/x11drv_main.c

index a94f977b8f842d581034b3d3607971a7a05aa03f..25c02e570edf7aca8271c832500264b688ce0220 100644 (file)
@@ -335,6 +335,7 @@ static void process_attach(void)
     if (!(display = XOpenDisplay( NULL )))
     {
         MESSAGE( "x11drv: Can't open display: %s\n", XDisplayName(NULL) );
+        MESSAGE( "Please ensure that your X server is running and that $DISPLAY is set correctly.\n" );
         ExitProcess(1);
     }
     fcntl( ConnectionNumber(display), F_SETFD, 1 ); /* set close on exec flag */
@@ -465,6 +466,7 @@ struct x11drv_thread_data *x11drv_init_thread_data(void)
     {
         wine_tsx11_unlock();
         MESSAGE( "x11drv: Can't open display: %s\n", XDisplayName(NULL) );
+        MESSAGE( "Please ensure that your X server is running and that $DISPLAY is set correctly.\n" );
         ExitProcess(1);
     }