octave-bug-tracker
[Top][All Lists]
Advanced

[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: Mike Miller
Subject: [Octave-bug-tracker] [bug #44368] Opening an Octave file via a desktop application does not open file on Octave editor
Date: Wed, 28 Mar 2018 13:31:16 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0

Update of bug #44368 (project octave):

                Severity:              3 - Normal => 1 - Wish               
                  Status:                    None => Postponed              

    _______________________________________________________

Follow-up Comment #6:

The primary issue with moving forward on this bug is that users may want the
main Application launcher for Octave to start Octave as it does now, on the
command window. At the same time, users may want to be able to double click on
a file in the file browser and have it be opened in Octave with the file
editor tab open, as opposed to running the file as a script.

On GNU/Linux desktops, a single .desktop file has to serve both purposes of
"how to run this program" and "how to use this program to open a file".
Typically this is just "program-name" vs "program-name file-name", but in our
case we want the latter to open the file in the editor.

One way forward might be to register dbus API calls with Octave. If the user
invokes some dbus method to open a file in the editor, and Octave isn't
already running, an instance of Octave would start first to handle the dbus
function call. See bug #42603 for this specific bug.

But mainly, we need a single command line to put in the Exec entry of a
desktop file that means "run Octave normally with the command window open" and
at the same time means "run Octave and open the given file in a new file
editor tab when given a file argument".

I do not think we want "octave foo.m" to mean "run foo.m as a script", but
"octave --gui foo.m" to mean open foo.m in the file editor.

And I do not think "octave --gui --persist --eval "edit '%f'" is a solution
because that will always open a new editor window and set focus to the editor
as opposed to the command window.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?44368>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]