2015-05-15, 21:40
(2015-05-09, 12:11)tomrey Wrote: Hi Ken,
how could I execute a script at Kodi shutdown?
I would need it to shutdown an amplifyer.
I can start it through a startup script outside kodi but the turn off-feature is still missing
Regards
(2015-05-10, 17:44)tekno Wrote: I agree with tomrey. SHutdown script is needed. I want to use the shutdown script so a user can select a different remote.
These might be possible if whatever code you are running is not going to be python running on the Kodi python interpreter.
Kodi terminates all scripts if they don't shutdown in 5 seconds, so unless you are launching an independent process, whatever you are doing has to complete fast.
And no, there is no way to change that or abort the shutdown. So waiting for a user prompt to select something would have to programmed with it's own independent GUI.
Of note, Kodi does NOT play nice with the multiprocessing module, so don't go down that path.