Kodi Community Forum
Run script on "shutdown function timer" trigger. - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: Run script on "shutdown function timer" trigger. (/showthread.php?tid=98738)



Run script on "shutdown function timer" trigger. - StarkJohan - 2011-04-07

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.


- StarkJohan - 2011-04-08

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...?


- StarkJohan - 2011-04-11

Is there somewhere I might find some info on this? How is the shutdown timeout handled?


RE: Run script on "shutdown function timer" trigger. - pgoeri - 2012-04-15

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