octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #48017] --no-window-system command line option


From: Rik
Subject: [Octave-bug-tracker] [bug #48017] --no-window-system command line option does not disable graphics
Date: Wed, 25 May 2016 17:25:27 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

URL:
  <http://savannah.gnu.org/bugs/?48017>

                 Summary: --no-window-system command line option does not
disable graphics
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Wed 25 May 2016 10:25:25 AM PDT
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: Confirmed
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

The --no-window-system or -W argument is supposed to disable any Octave
features which need a graphical display.  However, the following works


octave -f -W
plot (1:10)


Octave can be forced to believe there in no display if you remove the X11
DISPLAY variable from the environment.


unsetenv DISPLAY
octave -f -W
plot (1:10)


The plot is now made only on the console using ASCII art.

This seems to be a problem with input option processing.  In octave.cc there
is this line


  if (no_window_system)
    display_info::no_window_system ();


In display.h there is this


  // To disable querying the window system for defaults, this function
  // must be called before any other display_info function.
  static void no_window_system (void)
  {
    instance_ok (false);
  }


My guess is that the order of initialization in octave.cc is now calling
something that creates an instance of the display with a value of true before
this is called.





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?48017>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]