Launch a Python script when XBMC shutdown

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
olivelemalin Offline
Junior Member
Posts: 47
Joined: Feb 2009
Reputation: 0
Post: #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.
find quote
blittan Offline
Team-XBMC Handyman
Posts: 1,748
Joined: Jun 2004
Reputation: 11
Location: Sweden
Post: #2
Not currently, there is a feature request for it though.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
If you don't have the time to read them, please don't take the time to post in this forum!
For troubleshooting and bug reporting please make sure you read this first.
find quote
hamradio Offline
Junior Member
Posts: 4
Joined: Sep 2011
Reputation: 0
Post: #3
I bump on this thread.
Has anything changed now?
Is it possible to exec something when XBMC stops?
Thank you for answering.
find quote
Dam0 Offline
Fan
Posts: 445
Joined: Jun 2008
Reputation: 0
Post: #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.
(This post was last modified: 2013-07-26 03:23 by Dam0.)
find quote
Angelscry Offline
Skilled Python Coder
Posts: 3,376
Joined: Sep 2010
Reputation: 53
Location: MTL, Canada
Post: #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.
(This post was last modified: 2013-07-26 05:53 by Angelscry.)
find quote