2021-08-20, 15:39
Hi All,
maybe my suggestion is not aimed to simplicity, but I believe is a good reasoning starting point.
To start automatically script ad Kodi boot initially autoexec.py was used, but recently (sept 2020) has been deprecated for security issue.
I've loved autoexec.py as lean solution, but after a while I've realized that an Autoexec Addon (as suggested in PR) can be a first step toward modularity.
In fact, many script addon can be written to automate specific tasks, calling only one when useful at Kodi start using another addon as bootstrap.
To see an example, see my demo code that implements this bootstrap addon:
in settings page another addon can be choosen to run at Kodi startup (this addon can be disabled with appropriate button)
I'm glad if someone is interested and I'll happy about comments
Leo
maybe my suggestion is not aimed to simplicity, but I believe is a good reasoning starting point.
To start automatically script ad Kodi boot initially autoexec.py was used, but recently (sept 2020) has been deprecated for security issue.
I've loved autoexec.py as lean solution, but after a while I've realized that an Autoexec Addon (as suggested in PR) can be a first step toward modularity.
In fact, many script addon can be written to automate specific tasks, calling only one when useful at Kodi start using another addon as bootstrap.
To see an example, see my demo code that implements this bootstrap addon:
in settings page another addon can be choosen to run at Kodi startup (this addon can be disabled with appropriate button)
I'm glad if someone is interested and I'll happy about comments
Leo