radish;266884 Wrote: > But what if it's not shutting down, what if it's just going to sleep? > The app isn't unloaded so shutdownPlugin() won't happen. What you need > is a sleepPlugin() but you need to figure out a way of detecting that > event so you can trigger the callback. There may well be a better way > than ACPI, but you get the idea :)
Doh. Yes, of course you're right. In Linux you could easily configure the OS to shutdown SC7 when suspending or hibernating; I'm not so sure about Windows or MacOS or others. It'd be better for the plugin to implement a CLI command that could be called by something watching for ACPI events, so the OS wouldn't have to unload all the Perl/MySQL processes. -- peterw http://www.tux.org/~peterw/ free plugins: http://www.tux.org/~peterw/#slim AllQuiet BlankSaver BottleRocket FuzzyTime SaverSwitcher SleepFade StatusFirst SyncOptions VolumeLock ------------------------------------------------------------------------ peterw's Profile: http://forums.slimdevices.com/member.php?userid=2107 View this thread: http://forums.slimdevices.com/showthread.php?t=43137 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/plugins
