Posts: 47
Joined: Feb 2009
Reputation:
0
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.
Posts: 1,747
Joined: Jun 2004
Reputation:
12
blittan
Retired Team-Kodi Member
Posts: 1,747
Not currently, there is a feature request for it though.
Posts: 4
Joined: Sep 2011
Reputation:
0
I bump on this thread.
Has anything changed now?
Is it possible to exec something when XBMC stops?
Thank you for answering.
Posts: 478
Joined: Jun 2008
Reputation:
0
2013-07-26, 03:22
(This post was last modified: 2013-07-26, 03:23 by Dam0.)
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.
Posts: 3,432
Joined: Sep 2010
Reputation:
57
2013-07-26, 05:52
(This post was last modified: 2013-07-26, 05:53 by Angelscry.)
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.