25 Oct
2016
25 Oct
'16
9:01 a.m.
On Monday, 24 October 2016 18:23:26 CEST Richard W.M. Jones wrote:
We do this by sending an Inhibit() message to logind and receiving a file descriptor back, which we hold open until the conversion completes (or fails). This is described here: https://www.freedesktop.org/wiki/Software/systemd/inhibit/
This adds an additional optional dependency on DBus since we use DBus to call the Inhibit() method.
Reported-by: Chris Cowley.
Minor nitpick: "D-Bus" is the proper spelling. The rest of the libdbus-1 implementation looks correct, checking with the API docs (and a bit the internals). Maybe could be worth using the glib-based interface for it (dbus glib or GDBus). -- Pino Toscano