2021-03-26, 10:23
(2021-03-22, 22:15)tannyl Wrote:Looking at the code the pre/post script are executed by just running the full path to the file, so I guess python scripts should work if you can run them from the command line by just using the filename, but from memory I have never tested it with a python script, only bash at batch files.(2021-03-20, 23:37)teeedubb Wrote:(2021-03-20, 09:26)tannyl Wrote: I had tried looking into this, using the pre/post scripts, but did not get that far due to having kids that demand attention.
Is there any way to store a variable in the pre script and later retrieve that variable in the post script? (other then just writing to a file, which I guess would be an option)
I would like to be able to save the selected screensaver settings before disabling them in the pre script, and then restore them in the post script.
Otherwise I have to hardcode the settings into the post script, and remember to change them, if ever the screensaver settings are changed in Kodi.
I personally would use a file to store the variable.
I figured out why I was having problems getting things to work.
I expected the the "pre" and "post" scripts was python scripts run inside Kodi, but now I see that is not the case.