Age | Commit message (Collapse) | Author | Files | Lines |
|
Returns the current list of inhibitors, an array of strings
representing the what, who, why, mode, and two unsigned int32
representing the user ID and process ID.
This is the same method that logind uses. Needed to have inhibit
track the uid/pid of the caller to mirror what logind returns.
|
|
|
|
The ck-connector only uses libdbus and not dbus-glib and it handles
OOM. Going to GDBus wouldn't let us properly handle OOM because
glib just aborts when g_malloc hits the OOM. So we'll leave that.
This patch removes the dbus-glib dependency as everything has been
ported. For:
https://github.com/ConsoleKit2/ConsoleKit2/issues/8
|
|
|
|
Now we support the mode string of the inhibit dbus call. It can
either be a "block" or "delay". If no delay lock is done, a
system call action will delay 2 seconds to give applications time
to save state. Holding a delay lock will increase the timeout to
a max of 8 seconds.
|
|
GDBus/GVariant dislikes NULL strings so we have to add workarounds
for that shortcoming.
|
|
Add some checks for opening and closing sessions from the Manager.
Also unref the variants that get created and close the inhibit fd
when done.
|
|
Fix make distcheck, bump minimum glib to 2.40 since we're using
that with this port to GDBus. Properly return the error messages
when calling Inhbit and it fails and fix some other GDBus return
values.
|