Kodi Community Forum
Launch a Python script when XBMC shutdown - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+--- Thread: Launch a Python script when XBMC shutdown (/showthread.php?tid=51038)



Launch a Python script when XBMC shutdown - olivelemalin - 2009-05-15

Hi,

Is there a way to launch a python script when XBMC is closed ?
I know the autoexec.py automatically launched when XBMC starts, but is there a same thing when XBMC stops ?

Thanks.


- blittan - 2009-05-15

Not currently, there is a feature request for it though.


RE: Launch a Python script when XBMC shutdown - hamradio - 2013-07-20

I bump on this thread.
Has anything changed now?
Is it possible to exec something when XBMC stops?
Thank you for answering.


RE: Launch a Python script when XBMC shutdown - Dam0 - 2013-07-26

if your using eventghost, this would be easily acheived

you could have;

1) exit xbmc keypress = close xbmc then run something

or

2) check to see if xbmc window exists, if not, do something

D.


RE: Launch a Python script when XBMC shutdown - Angelscry - 2013-07-26

You could also use Advanced Launcher to create a stand-alone launcher to start a script that will: first close XBMC, and then start your python script.

Then, rename the launcher as "Close", add it as favourite, and add this last one as a custom XBMC menu entry.