Am 25.06.2025 um 15:19 schrieb Pavel Sanda <[email protected]>: > > On Wed, Jun 25, 2025 at 03:01:39PM +0200, [email protected] wrote: >>> We call "octave -q 2>&1". I see on my commandline that there exists >>> octave-cli. >>> iDo you see it on mac as well? Should we call that instead? >> >> According to octave.org <http://octave.org/>, Starting with version 4, the >> default behavior of the ???octave??? command has been changed to launch the >> GUI: https://octave.org/NEWS-4.0.html. Previous versions would launch in a >> terminal widow instead. > > Ok, thanks for clarification. > >> When I invoke octave from LyX, an iconized window appears briefly and >> disappears on the Dock, which looks like a terminal icon but is titled >> ???octave-gui???. So, it may indeed be worthwhile to change the command to >> "octave-cli??? when calling from LyX (the file also exists on mac), or use >> one of the command-line options --no-window-system, -W, --no-gui, etc. Or >> perhaps Stephan???s idea is the right way to go about it. > > I am not sure why mac needs the special treatment. When I simply change > octave to octave-cli on linux (see attached patch), "rand(2,2)" in mathed > works as expected for octave. > Stephan, is this enough?
To answer that I have to see how octave is installed. The idea with the wrapper script is to make these external programs working out-of-the-box. Maxima is a bundle and usually installed in /Applications on a mac. But /Applications/Maxima.app/Contents/Resources - where the command line shell start utility is - is not in path and I don’t like to depend on those paths being in the LyX or users environment. The same is true for inkscape… and lilypond. Stephan >> Unfortunately, I was unable to test how any of these affects the speed. I >> made the alias octave='octave-cli??? as well as with command-line options in >> my Z-shell but it did not change the behavior in LyX: the icon on the Dock >> is always titled ???octave-gui??? and alway takes a few seconds to appear >> and disappear before the answer is shown in LyX. If you have any other >> suggestions, I would be happy to try and run a speed test. > > octave call is hardoced in lyx sources no outside alias would help (except of > makeing octave to be link to octave-cli, but I don't think you want to mess > with your system that badly). > > Pavel > <o.patch>-- > lyx-devel mailing list > [email protected] > https://lists.lyx.org/mailman/listinfo/lyx-devel -- lyx-devel mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-devel
