Edward, thank you very much for that tip. For at least now dangerous
script execution is enough for my. Developing a plugin is pretty
expensive for my liking. Until I occasionally format my disk c: - I
prefer to play russian roulette for a while.
2020-12-05 23:28 GMT+03:00, Edward K. Ream <
edre...@gmail.com>:
> On Mon, Nov 30, 2020 at 2:52 PM gar <
gar...@gmail.com> wrote:
>
>> cannot understand how to instruct myLeoSettings to execute code when it
>> is first read. And reload it on "reload-settings".
>
>
> This is a big security problem, but it is possible.
>
> See @bool scripting-at-script-nodes = False
>
> True: dynamically executes script in @script nodes when a window is
> created. DANGEROUS!
>
> To be clear, this is dangerous because it will execute *any* @script node.
>
> If you want both flexibility and security, you could create a plugin that
> executes *known* scripts at various times. See this page
> <
http://leoeditor.com/writingPlugins.html#handling-events> of the Writing
> Plugins <
http://leoeditor.com/writingPlugins.html> chapter.
>
> Edward
>
> --
> You received this message because you are subscribed to the Google Groups
> "leo-editor" group.
> To unsubscribe from this group and stop receiving emails from it, send an
>
https://groups.google.com/d/msgid/leo-editor/CAMF8tS2__SkWRsBw1kW0SD4W2AvMP9QCK_L33sByRpQtbVcEGg%40mail.gmail.com.
>