Tue 20 Aug 2013 06:37:34 PM UTC, comment #14:
Added new function in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/5ff843d739fc). Closing report.
|
Sat 17 Aug 2013 03:22:28 AM UTC, comment #13:
I reviewed your patch and am ready to commit it. How would you like to be credited? We usually do "firstname lastname <email@address>". Would you like to be added to the list of contributors as well?
|
Thu 15 Aug 2013 01:14:21 PM UTC, comment #12:
Please find attached a new version of desktop.m reflecting recent discussion.
Is there a way in Octave to start the GUI from the command line?
(file #28849)
|
Wed 14 Aug 2013 04:13:54 PM UTC, comment #11:
I just checked in MATLAB: if the GUI is already running, typing "desktop" is a no-hop.
Calling "desktop" with more than one arguments returns an error:
and only two arguments are accepted:
|
Wed 14 Aug 2013 03:36:37 PM UTC, comment #10:
I think we're all in agreement the only thing this function should do in Octave is tell whether the GUI is running for compatibility.
The proposed script that Guillaume attached treats zero args as an error, regardless of if the GUI is running. I'd even say treat more than one arg as an error.
|
Wed 14 Aug 2013 03:20:28 PM UTC, comment #9:
What should happen if the desktop is already running and you type "desktop"? Should that be an error, a no-op, or should it start a second desktop?
|
Wed 14 Aug 2013 02:03:02 PM UTC, comment #8:
I was not sure where the file should be (scripts/general or scripts/ui?) so the attachment is not a changeset but a straight file.
You might also have changed your mind after the recent discussion on the maintainer list regarding on whether to call isguirunning() or not.
(file #28840)
|
Tue 13 Aug 2013 06:51:46 PM UTC, comment #7:
Sure. That sounds fine. If you can prepare a changeset I will commit it.
|
Tue 13 Aug 2013 12:23:24 PM UTC, comment #6:
Thanks. I was not aware of isguirunning(). Is the conclusion that we could add a desktop("-inuse") function that would call isguirunning() in Octave?
|
Mon 29 Jul 2013 07:31:12 PM UTC, comment #5:
True, it could call isguirunning(). I was going by the OP's example, where desktop -inuse means I can print HTML to the console. Or who knows what other capabilities scripts might infer from it. Might be safer to have the function exist so there's no error, but always return false.
|
Mon 29 Jul 2013 06:46:24 PM UTC, comment #4:
I think 'desktop ("-inuse") is closer in equivalency to isguirunning() for Octave since we won't use a Java desktop even if the GUI is running.
|
Mon 29 Jul 2013 05:04:11 PM UTC, comment #3:
I can't find any public reference to this function either. However, from the description it seems that
is identical to
Any other form of calling desktop() would be an error with invalid argument.
|
Tue 11 Sep 2012 06:11:56 PM UTC, comment #2:
I couldn't find it on the MathWorks' website as well; that's why I copied the help text.
There is no mention of this function being deprecated though. It is the matlab/general folder and is mentioned in the Contents.m there:
An example of use is the following:
When not using the desktop, you don't want the HTML code being displayed in your console.
|
Tue 11 Sep 2012 05:40:48 PM UTC, comment #1:
Has this function been deprecated by Mathworks? The complete list of functions for 2012A is available at http://www.mathworks.com/help/techdoc/ref/funcalpha.html and I don't find this function.
There is the function workspace() which is maybe related.
|
Tue 11 Sep 2012 02:57:43 PM UTC, original submission:
In MATLAB (at least since 7.4 (R2007a)), there is a desktop() function:
It could be added to the list of Octave's unimplemented function; but having at least the option desktop('-inuse') to return false would help compatibility, in case the other options are not relevant in the Octave GUI framework.
|