bugGNU Octave - Bugs: bug #38937, Remove "X11 DISPLAY...

 
 

bug #38937: Remove "X11 DISPLAY environment variable not set" warning OR make --no-window-system a short option

Submitter:  None
Submitted:  Wed 08 May 2013 03:00:28 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Feature Request
Status:  Fixed Assigned to:  None
Originator Name:  Karl Wette Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.6.2
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 02 Nov 2013 01:43:33 AM UTC, comment #2: 

I also checked in the following change so that the -q command-line option supresses the warning message:

http://hg.savannah.gnu.org/hgweb/octave/rev/6b787e274eb1

John W. Eaton <jwe>
Group administrator
Wed 19 Jun 2013 06:39:21 PM UTC, comment #1: 

I added support for a '-W' option to Octave in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/8d188159ce5f).  You will need to build from development sources or wait until the next major release of Octave to see the fix. 

Rik <rik5>
Group administrator
Wed 08 May 2013 03:00:28 PM UTC, original submission:  

When the X11 environment variable $DISPLAY is not set, Octave prints the warning:

warning: X11 DISPLAY environment variable not set

This is unnecessary noise when running Octave scripts in an environment with no X11 display, e.g. a computing cluster node. It seems reasonable to me that, when $DISPLAY is not set, to assume that Octave is running in an environment with no window system, and generate an error only if the script tries to do something which needs a window, e.g. make a plot.

I appreciate that there is a command-line option, --no-window-system, which can be used to silence this warning. But this leads to another problem: since this is a long option, one cannot combine it with other options in a she-bang line, e.g.

#!/usr/bin/octave -qH --no-window-system

does not work. At least if --no-window-system had a short option form, e.g. -W, one could include it in a she-bang line with other short options.

So in short, please consider either:

  • removing the warning when $DISPLAY is not set, OR


  • adding a short option for --no-window-system


Thanks in advance!

Anonymous

 

(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 jwe (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by None (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
    2013-06-19 rik5 StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code