On 16/03/14 22:30, Michael Biebl wrote: > 2014-03-16 15:54 GMT+01:00 Antoine Martin <anto...@nagafix.co.uk>: >> On 16/03/14 21:28, Michael Biebl wrote: >> >> Newer upower versions no longer emit that signal since this handled by >> systemd. >> >> OK, I hope there a new signal I can listen for? > http://www.freedesktop.org/wiki/Software/systemd/logind/ > > /--------- > |Signals > | > |Whenever the inhibition state or idle hint changes daemon > PropertyChanged signals are sent out to which clients can subscribe. > | > |<The SessionNew(), SessionRemoved(), UserNew(), UserRemoved(), > SeatNew(), SeatRemoved() signals are sent each time a session is > created or removed, a user logs in or out, or a seat is added or > removed. They each contain |the ID of the object plus the object path. > | > |The PrepareForShutdown() resp. PrepareForSleep() signals are sent > right before (with the argument True) and after (with the argument > False) the system goes down for reboot/poweroff, resp. > suspend/hibernate. This may be used by |applications for saving data > on disk, releasing memory or doing other jobs that shall be done > shortly before shutdown/sleep, in conjunction with delay inhibitor > locks. After completion of this work they should release their > inhibition |locks in order not to delay the operation any further. For > more information see Inhibitor Locks. > \--------- > > > Does that help? It does! I had seen that page like a dozen times, but somehow missed the "PrepareForSleep with argument False" everytime.
Thanks a bunch! Antoine _______________________________________________ devkit-devel mailing list devkit-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/devkit-devel