# HG changeset patch # User Mike Miller # Date 1521227326 25200 # Node ID 91331c76d9c1b395185055e86120f2c985aede95 # Parent 088506eadb44ecade8c0d81aa2f1f04e64af5801 invert the logic for whether to start the GUI in the octave wrapper * main.in.cc (main): Set start_gui to false by default. Handle the --gui command-line option. diff -r 088506eadb44 -r 91331c76d9c1 src/main.in.cc --- a/src/main.in.cc Thu Mar 15 15:01:03 2018 +0100 +++ b/src/main.in.cc Fri Mar 16 12:08:46 2018 -0700 @@ -203,7 +203,7 @@ { int retval = 0; - bool start_gui = true; + bool start_gui = false; bool gui_libs = true; set_octave_home (); @@ -258,6 +258,15 @@ start_gui = false; new_argv[k++] = argv[i]; } + else if (! strcmp (argv[i], "--gui")) + { + // If we see this option, then we fork and exec octave with + // the --gui option, while continuing to handle signals in the + // terminal. + + start_gui = true; + new_argv[k++] = argv[i]; + } else if (! strcmp (argv[i], "--silent") || ! strcmp (argv[i], "--quiet")) { warn_display = false;