# HG changeset patch # User Mike Miller # Date 1346798608 14400 # Node ID 99db33cae82b6487a8ac44f760170a55d0ec8fe2 # Parent 27bdffcb41c5f3dbb7da597784e82c463c8cb16f don't start the GUI if window system is disabled * libinterp/octave.cc (octave_starting_gui): Check no_window_system. diff --git a/libinterp/octave.cc b/libinterp/octave.cc --- a/libinterp/octave.cc +++ b/libinterp/octave.cc @@ -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)