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!
|