If unable to open an X11 display mention that X needs to be running
and that $DISPLAY must be set correctly.
This commit is contained in:
parent
8091a89011
commit
98ae5ac103
|
@ -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)
|
||||||
{
|
{
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue