Mercurial > hg > octave-max
comparison libinterp/octave.cc @ 15291: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 |
comparison
equal
deleted
inserted
replaced
15290:27bdffcb41c5 | 15291:99db33cae82b |
---|---|
1081 // extern "C". | 1081 // extern "C". |
1082 | 1082 |
1083 int | 1083 int |
1084 octave_starting_gui (void) | 1084 octave_starting_gui (void) |
1085 { | 1085 { |
1086 if (! display_info::display_available ()) | 1086 if (no_window_system || ! display_info::display_available ()) |
1087 return false; | 1087 return false; |
1088 | 1088 |
1089 if (force_gui_option) | 1089 if (force_gui_option) |
1090 return true; | 1090 return true; |
1091 | 1091 |