diff libinterp/octave.cc @ 15290:99db33cae82b

don't start the GUI if window system is disabled * libinterp/octave.cc (octave_starting_gui): Check no_window_system.
author Mike Miller <mtmiller@ieee.org>
date Tue, 04 Sep 2012 18:43:28 -0400
parents ad1a980b0cb5
children b055fc077224
line wrap: on
line diff
--- a/libinterp/octave.cc	Tue Sep 04 16:15:08 2012 -0400
+++ b/libinterp/octave.cc	Tue Sep 04 18:43:28 2012 -0400
@@ -1083,7 +1083,7 @@
 int
 octave_starting_gui (void)
 {
-  if (! display_info::display_available ())
+  if (no_window_system || ! display_info::display_available ())
     return false;
 
   if (force_gui_option)