Launch a Python script when XBMC shutdown

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
olivelemalin Offline
Junior Member
Posts: 47
Joined: Feb 2009
Reputation: 0
Post: #1

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

find quote
blittan Offline
Team-XBMC Handyman
Posts: 1,747
Joined: Jun 2004
Reputation: 12
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
Posts: 479
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


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

(This post was last modified: 2013-07-26 03:23 by Dam0.)
find quote
Angelscry Offline
Skilled Python Coder
Posts: 3,432
Joined: Sep 2010
Reputation: 57
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