Hi! On Thursday 17 March 2005 18:41, [EMAIL PROTECTED] wrote: > Hello this integratin of nvram-wakeup is in my todo too, but my plan is to > check user activity via screensaver plugin, I didn't study it deeper, but > maybe it would be better way? Then is not nessecery to patch freevo with > abort question.
Should be fairly easy. Simply look at the file plugins/freevoscreensaver.py. Add creating a lock file at the beginning of the start_saver method and remove it in the stop_saver method. To make it more save additionally remove it in the constructor of the plugin. E.g.: in constructor: self.lockfile = config.FREEVO_CACHEDIR + '/screensaver' os.remove(self.lockfile) in start_saver: open(self.lockfile, 'w').close() in stop_saver: os.remove(self.lockfile) After that each time the screensaver turns on we have a file named screensaver in the freevo cache directory. voila... Cheers, Stephan ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Freevo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freevo-users
