Catching machine suspend events

2017-10-01 Thread David Llewellyn-Jones
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.freedesk

Unexpected gdbus behaviour during PAM authentication

2017-01-11 Thread David Llewellyn-Jones
Hi all, I've been trying to create a pam module that sends a dbus message to a service using gdbus, but it's failing in a way I can't figure out. I've used gdbus and gdbus-codegen for both the service and the caller, and it all seems to work fine when I call the service from a simple test applica