Commit 5268bc2d authored by Rafaël Carré's avatar Rafaël Carré
Browse files

fix #1382

parent c45b364e
...@@ -177,7 +177,8 @@ static int Open( vlc_object_t *p_this ) ...@@ -177,7 +177,8 @@ static int Open( vlc_object_t *p_this )
intf_thread_t *p_intf = (intf_thread_t *)p_this; intf_thread_t *p_intf = (intf_thread_t *)p_this;
p_intf->pf_run = Run; p_intf->pf_run = Run;
#if defined HAVE_GETENV && defined Q_WS_X11 #if defined HAVE_GETENV && defined Q_WS_X11
if( !getenv( "DISPLAY" ) ) char *psz_display = getenv( "DISPLAY" );
if( !psz_display || !*psz_display )
{ {
msg_Err(p_intf, "no X server"); msg_Err(p_intf, "no X server");
return VLC_EGENERIC; return VLC_EGENERIC;
......
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