bugGNU Octave - Bugs: bug #60290, The message "octave: X11...

 
 

bug #60290: The message "octave: X11 DISPLAY environment variable not set" should not be printed on startup

Submitter:  Lars Kindermann <larskindermann>
Submitted:  Fri 26 Mar 2021 12:38:59 AM UTC
   
 
Category:  Interpreter Severity:  1 - Wish
Priority:  3 - Low Item Group:  Unexpected Error or Warning
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 26 Mar 2021 12:54:45 PM UTC, comment #3: 

In this warning "GUI" means "anything that needs a display", thus including FLTK, not only Qt GUI. Given that there exist at least two very simple options ("-W" or "-q") this seems like a very low priority feature request.

If you consider the requested feature is worth the time spent writing a patch don't hesitate to write one.

Pantxo Diribarne <pantxo>
Group Member
Fri 26 Mar 2021 12:46:01 PM UTC, comment #2: 

But this message appears, even if built without GUI support:


LAR:~ $ octave --gui
octave: GUI features missing or disabled in this build
LAR:~ $


but


LAR:~ $ octave
octave: X11 DISPLAY environment variable not set
octave: disabling GUI features

GNU Octave, version 6.1.0
Copyright (C) 2020 The Octave Project Developers.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type 'warranty'.

Octave was configured for "aarch64-unknown-linux-android".

Additional information about Octave is available at https://www.octave.org.

Please contribute if you find this software useful.
For more information, visit https://www.octave.org/get-involved.html

Read https://www.octave.org/bugs.html to learn how to submit bug reports.
For information about changes from previous versions, type 'news'.

octave:1>


Lars Kindermann <larskindermann>
Fri 26 Mar 2021 08:12:58 AM UTC, comment #1: 

Whatever the way you invoke Octave, you are requesting a GUI feature by default (octave-cli->FLTK for figures, octave->Qt for figures). The "-W" option tells octave to start without a display and the warning is then not displayed.

Pantxo Diribarne <pantxo>
Group Member
Fri 26 Mar 2021 12:38:59 AM UTC, original submission:  

Recently I started to use Octave frequently on headless systems (Raspberry Pi without X11, Termux/Android) with no graphics capabilities. So I am always greeted with the message


octave: X11 DISPLAY environment variable not set
octave: disabling GUI features


I am aware of the -q option which disables this, but wouldn't it be better to throw this warning only when actually requesting a GUI feature?

Lars Kindermann <larskindermann>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by larskindermann (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-03-26 pantxo Severity3 - Normal 1 - Wish
        Priority5 - Normal 3 - Low

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code