Run script on "shutdown function timer" trigger.

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
StarkJohan Offline
Junior Member
Posts: 11
Joined: May 2010
Reputation: 0
Post: #1
I'm running a XBMUbuntu box and I'm wondering if it is at all possible to run a script when the shutdowntimer event is triggered? I.e. when my system has been idle for X minutes and therefore shuts down.

I don't want the script to run on every normal shutdown but only when the shutdowntimer is triggered.
find quote
StarkJohan Offline
Junior Member
Posts: 11
Joined: May 2010
Reputation: 0
Post: #2
Wrong forum? I can't imagine this to be a very tough question to answer for someone with a little insight in the xbmc shutdown procedure...?
find quote
StarkJohan Offline
Junior Member
Posts: 11
Joined: May 2010
Reputation: 0
Post: #3
Is there somewhere I might find some info on this? How is the shutdown timeout handled?
find quote
pgoeri Offline
Senior Member
Posts: 103
Joined: Jun 2010
Reputation: 1
Location: Austria
Post: #4
I did a little research on this shutdown topic. The relevant method in the source code is CApplication::CheckShutdown() in file Application.cpp, but it's not capable of calling a external script yet.

I just posted a feature request and also mentioned your thread: http://forum.xbmc.org/showthread.php?tid=128999

JDownloader Plugin - Handle JDownloader from within xbmc
RlsBB Plugin - Add links from rlsbb.com to JDownloader/pyLoad
find quote