There should be a possibility to interrupt the "idle shutdown" by a external application. e.g. When there are still active downloads running (with JDownloader or uTorrent) the shutdown should not by executed.
It seems there is also a need to run a script just before the idle shutdown.
So CApplication::CheckShutdown() should be improved. Maybe it could execute a external script in a specific folder, which will return 1 or 0 if the computer is idle or not. Or there could be a service addon with a specific method (e.g. "isIdle()")
It should definitly be possible to have more than one external application that prevents the shutdown.
interrupt the "idle shutdown" by addon or external application
Joined: Jun 2010
2012-04-15 21:09 Post: #1
JDownloader Plugin - Handle JDownloader from within xbmc
IRFree Plugin - Add links from irfree.com to JDownloader
RlsBB Plugin - Add links from rlsbb.me to JDownloader
Joined: Jul 2009
2012-12-31 18:10 Post: #2
I'll second this.
With the new PVR options in Frodo I (and maybe someone else) will need this to use an equivalent of the shutdown scripts in VDR.
In my shutdown script I check for different use cases:
- Am I logged in via NX?
- Is MPD playing music?
- Am I watching videos with UPNP?
- Am I updating the EPG (with an external script)?
Only if the script returns 0 vdr will shutdown my system.
For now I'm starting to XBMC, exiting XBMC after 15 minutes of idle time, automatically starting vdr-sxfe and wait for the shutdown.
To define an (additional) script for the idle shutdown would be very helpful.