Launch a Python script when XBMC shutdown
#1
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.
Reply
#2
Not currently, there is a feature request for it though.
Reply
#3
I bump on this thread.
Has anything changed now?
Is it possible to exec something when XBMC stops?
Thank you for answering.
Reply
#4
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.
Reply
#5
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.
Reply

Logout Mark Read Team Forum Stats Members Help
Launch a Python script when XBMC shutdown0