https://bugs.kde.org/show_bug.cgi?id=420960

--- Comment #4 from Nikita Sirgienko <warqu...@gmail.com> ---
(In reply to avlas from comment #2)
> I confirm that .octaverc is executed at startup (the paths that I added
> there are visible in Cantor). However:
> 
> - Cantor executes some code afterwards and overrides its content, for
> instance: I set as specific graphics_toolkit qt, yet once I check it in
> cantor it says gnuplot and I need to specify it again manually in each
> session.

Yes, I have been checked code, and Cantor really set gnuplot as graphics
toolkit, when integrated graphics enabled. But you actually haven't need to
change it to 'qt' manually - use autorun scripts from Octave settings. I have
been add example (attachment #1).

> - Octave's workspace at startup is not initially seen in Cantor workspace.
> For instance, I set a variable in .octaverc like this `x = 2;` and it does
> not appear in Cantor workspace, but if I then type in the console `x`,
> Cantor correctly returns `2` at the time `x` and its value is added to the
> workspace.
Is you write 'x' in first executed entry? Because Cantor update variable list
(variable manager) only first executed entry. For example, my .octaverc works
as expected, see attachment #2

> So, can we make .octaverc the last bit that is executed at startup and have
> Cantor display Octave's initial workspace?
.octaverc can't be executed before Cantor startup because, Cantor init used
--eval octave option. But I think, Cantor can improve currect behaviour,
because  the idea of changing graphics toolkit to gnuplot is avoiding default
fltk, which can freeze octave program (and Cantor too) at all. So, instead of
current "always change toolkit" we can use "change toolkit if fltk" and I
think, this will be solve your problem, because you use 'qt' toolkit, not
'fltk' toolkit.

> Also, I cannot confirm that the script I configure in cantor octave backend
> settings is executed. Following the example above, I set a file in there
> where I have `x = 2;` and when I test it in Cantor, it says x is undefined,
> unlike when I do the same in .octaverc.
Well, this is strange. Do you sure, that after writing "x = 2;" you have
pressed "Add" button? Because this is needed for actual adding script to
autorun, see my attachment #3

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to