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.
|
|
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.
|
|
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.
|
|
This allows use of /run on tmpfs instead of /var/run
without downstream symlink magic or patches.
|
|
This allows for multiple instances of the same app to hold a lock
should they need to.
|
|
When creating the inhibit named pipe we need to ensure we escape
the special characters out so that it's safe for use. This also
sets up the test-inhibit program to try one such input.
|
|
|
|
Also refactors some of the logging code to remove duplications.
Not sure if the can or auth checks should return FALSE if there's
an inhibit lock on the action... but that can be easily added in
the future.
|
|
When the inhibit lock increments to 1 it will be TRUE and when it
reaches 0 it will be FALSE. Additional locks above 1 will not emit
a signal but the manager will keep track.
|
|
And add additional tests for it as we go
|
|
Also start working on the inhibit manager.
|
|
|
|
|
|
|
|
|
|
Might need an inhibit manager at some point in the future to track
all these locks and prevent duplicates. We'll see how complex it
needs to be.
|