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

Submitted by:  None
Submitted on:  Wed 08 May 2013 03:00:28 PM UTC  
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Feature Request
Status: FixedAssigned to: None
Originator Name: Karl WetteOriginator Email: -email is unavailable-
Open/Closed: ClosedRelease: 3.6.2
Operating System: Any

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


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:


John W. Eaton <jwe>
Project 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>
Project 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!



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

Attach File(s):

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)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 19 Jun 2013 06:39:21 PM UTCrik5StatusNone=>Fixed

    Back to the top

    Powered by Savane 3.1-cleanup1