Open walwan opened 3 years ago
I don't know how to write a plugin, so I cannot fix it by modifing the code and giving a pr. Sorry for that.
Maybe you can try to modify /octave/octave/tmstart.m to set up the right gui. If this is too late, then it is enough to modify the invocation of octave in /octave/progs/init-octave.scm, try to make it look like
(define (octave-launcher)
(with boot (string-append "\"" (octave-source-path) "/tmstart.m\"")
(if (url-exists-in-path? "octave-cli")
(string-append "octave-cli --no-gui -qi " boot)
(string-append "octave-octave-app --no-gui -qi " boot))))
Maybe you can try to modify /octave/octave/tmstart.m to set up the right gui. If this is too late, then it is enough to modify the invocation of octave in /octave/progs/init-octave.scm, try to make it look like
(define (octave-launcher) (with boot (string-append "\"" (octave-source-path) "/tmstart.m\"") (if (url-exists-in-path? "octave-cli") (string-append "octave-cli --no-gui -qi " boot) (string-append "octave-octave-app --no-gui -qi " boot))))
Thank you! Just a notice: The key is to replace "octave-cli" (probably linked without qt) with "octave" (linked with qt), while passing an argument "--no-gui". So, it should be
(string-append "octave --no-gui -qi " boot).
Thank again for your timely reply!
I don't know whether this should be added to the code, but I will test it and give some feedbacks here.
Test result: On 5.8.18-1-MANJARO, all commands given in the demo part in the plugin manual work as expected. One thing to mention, a window will flash after running the first command.
Problem description
In an octave sesion, when executing a (any) command, throw an error:
Problem reproduction
Problem attribution
From /octave/progs/init-octave.scm, it seems that the command to open a new octave instance is "octave-cli". I tried to execute "available_graphics_toolkits", the result is
Also, the result of command "graphics_toolkit" in octave is
After I searched for any similar issue, I found this. Perhaps it's because octave-cli does not recognize "qt" as a plot toolkit.
Possible solution