bugGNU Octave - Bugs: bug #37078, GUI mode should automatically fall...

 
 

bug #37078: GUI mode should automatically fall back to CLI mode if no X server

Submitter:  Mike Miller <mtmiller>
Submitted:  Sat 11 Aug 2012 09:44:27 PM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Feature Request
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 11 Aug 2012 10:17:57 PM UTC, comment #1: 

The following change fixes this problem for me:

http://hg.savannah.gnu.org/hgweb/octave/rev/973296940c89

John W. Eaton <jwe>
Group administrator
Sat 11 Aug 2012 09:44:27 PM UTC, original submission:  

The newly unified octave+gui executable exits with an error if it cannot connect to X or if DISPLAY is unset, e.g. over SSH without X forwarded.


warning: X11 DISPLAY environment variable not set
octave: cannot connect to X server


The error is internal to Qt and I don't think there's a way to detect the condition, Qt just exits immediately (love it when library code chooses to exit for me).

Ideally, if the user runs octave without specifying --force-gui or --no-gui, it should detect whether it can connect to X first, and fall back to CLI mode if not. Currently, user has to read the error, know what it means, and run octave --no-gui.

Mike Miller <mtmiller>
Group Member

 

(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 mtmiller (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
    2012-08-11 jwe StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code