Autoexec Addon - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Discussions (https://forum.kodi.tv/forumdisplay.php?fid=222) +--- Forum: Kodi related discussions (https://forum.kodi.tv/forumdisplay.php?fid=6) +--- Thread: Autoexec Addon (/showthread.php?tid=364067) |
Autoexec Addon - leo.c - 2021-08-20 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 RE: Autoexec Addon - FXB78 - 2021-08-20 Looks very simple and effective, thanks for sharing! RE: Autoexec Addon - jjd-uk - 2021-08-20 There's info on this at https://kodi.wiki/view/Autoexec_Service RE: Autoexec Addon - FXB78 - 2021-08-20 (2021-08-20, 16:16)jjd-uk Wrote: There's info on this at https://kodi.wiki/view/Autoexec_ServiceYes but that's how to create autoexec.py, the OP has created an addon to simplify the process for some users. RE: Autoexec Addon - jjd-uk - 2021-08-20 (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_ServiceYes 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 RE: Autoexec Addon - FXB78 - 2021-08-20 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? RE: Autoexec Addon - leo.c - 2021-08-26 (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 |