Skip to content
Snippets Groups Projects
Commit 6b435334 authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

now checks for $DISPLAY before attempting to use GUI

Rev: bin/install.pike:1.63
parent 1242e3c2
No related branches found
No related tags found
No related merge requests found
...@@ -979,9 +979,14 @@ int pre_install(array(string) argv) ...@@ -979,9 +979,14 @@ int pre_install(array(string) argv)
catch { catch {
if(!no_gui) if(!no_gui)
{ {
#ifndef __NT__ /* We are using GTK on Win32!! no DISPLAY required */
if(getenv("DISPLAY"))
#endif
{
begin_wizard(argv); begin_wizard(argv);
return -1; return -1;
} }
}
}; };
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment