[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44368] Opening an Octave file via a desktop a
From: |
Carnë Draug |
Subject: |
[Octave-bug-tracker] [bug #44368] Opening an Octave file via a desktop application does not open file on Octave editor |
Date: |
Wed, 25 Feb 2015 15:50:30 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.4.0 |
URL:
<http://savannah.gnu.org/bugs/?44368>
Summary: Opening an Octave file via a desktop application
does not open file on Octave editor
Project: GNU Octave
Submitted by: carandraug
Submitted on: Wed 25 Feb 2015 15:50:29 GMT
Category: GUI
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
During installation, Octave "registers" as being able to handle Octave and
Matlab files.
This means that double click on a file with MIME type text/x-octave and
text/x-matlab will open on Octave session. However, this will only execute
the file not open it on the Octave GUI editor which is probably what a user
wants. With the octave program now being both a language and an IDE, an
"--edit" option would be useful to do this.
Bug #42603 (GUI: allow opening an m-file in the editor of a running instance)
is related to this issue. They solve the problem related on this bug by
having desktop applications opening files with 'octave --force-gui --persist
--eval "edit %1"'
The same workaround can be used by having the following line on
http://hg.savannah.gnu.org/hgweb/octave/file/bf511802add7/etc/icons/octave.desktop.in
Exec=/usr/local/bin/octave --force-gui --persist --eval "edit %f"
Or should we really get an --editor flag that could maybe even accept multiple
files?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44368>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #44368] Opening an Octave file via a desktop application does not open file on Octave editor,
Carnë Draug <=