Commit 98ae5ac1 authored by Chris Morgan's avatar Chris Morgan Committed by Alexandre Julliard

If unable to open an X11 display mention that X needs to be running

and that $DISPLAY must be set correctly.
parent 8091a890
...@@ -335,6 +335,7 @@ static void process_attach(void) ...@@ -335,6 +335,7 @@ static void process_attach(void)
if (!(display = XOpenDisplay( NULL ))) if (!(display = XOpenDisplay( NULL )))
{ {
MESSAGE( "x11drv: Can't open display: %s\n", XDisplayName(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); ExitProcess(1);
} }
fcntl( ConnectionNumber(display), F_SETFD, 1 ); /* set close on exec flag */ fcntl( ConnectionNumber(display), F_SETFD, 1 ); /* set close on exec flag */
...@@ -465,6 +466,7 @@ struct x11drv_thread_data *x11drv_init_thread_data(void) ...@@ -465,6 +466,7 @@ struct x11drv_thread_data *x11drv_init_thread_data(void)
{ {
wine_tsx11_unlock(); wine_tsx11_unlock();
MESSAGE( "x11drv: Can't open display: %s\n", XDisplayName(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); ExitProcess(1);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment