Catching machine suspend events
- From: David Llewellyn-Jones <david flypig co uk>
- To: gtk-app-devel-list gnome org
- Subject: Catching machine suspend events
- Date: Sun, 1 Oct 2017 14:01:49 +0100
Hi,
I have a service that runs a gtk main loop using g_main_loop_run(). I'd
like to know when the machine is about to be put into a suspend state,
ideally before the screen gets locked.
Are there any glib signals I can connect to for this? If not, should I
be using dbus to listen for org.freedesktop.UPower signals as described
here?:
https://stackoverflow.com/a/13548984
David
--
Website: http://www.flypig.co.uk
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]