Autoexec Addon
#1
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
Reply
#2
Looks very simple and effective, thanks for sharing!
Reply
#3
There's info on this at https://kodi.wiki/view/Autoexec_Service
Reply
#4
(2021-08-20, 16:16)jjd-uk Wrote: There's info on this at https://kodi.wiki/view/Autoexec_Service
Yes but that's how to create autoexec.py, the OP has created an addon to simplify the process for some users.
Reply
#5
(2021-08-20, 18:30)FXB78 Wrote:
(2021-08-20, 16:16)jjd-uk Wrote: There's info on this at https://kodi.wiki/view/Autoexec_Service
Yes but that's how to create autoexec.py, the OP has created an addon to simplify the process for some users.

No it isn;t, it explains how to create an addon using an autoexec.py
Reply
#6
I just installed this to have a look and it started my selected addon on boot as expected, however it doesn't seem to allow me to start anything except scripts & reset to defaults in settings doesn't work. Am I right in assuming this is supposed to be a working addon to allow us to start any addon on boot?
Reply
#7
(2021-08-20, 20:11)FXB78 Wrote: I just installed this to have a look and it started my selected addon on boot as expected, however it doesn't seem to allow me to start anything except scripts & reset to defaults in settings doesn't work. Am I right in assuming this is supposed to be a working addon to allow us to start any addon on boot?

Hi FXB78, I've tested on a LE/RasPi and works.

After select another addon to start (and eventually test it selecting relative entry in Settings), you have to confirm with OK button, and selected addon will start at next boot

However, only Script addon are allowed to start at boot.

Leo
Reply

Logout Mark Read Team Forum Stats Members Help
Autoexec Addon0