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.
|
|
When calling get_sessions/seats return NULL + an error stating
that there's nothing to return. This makes the GDBus branch work
like the pre-GDBus code.
|
|
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.
|
|
Quite a bit of work here. ck-session-leader needs to be ported.
|
|
This patch adds the PrepareForSleep/Shutdown signals so apps can
listed for these signals and perform operations prior to the event
such as logging out of online chatrooms.
|
|
This patch:
- Adds the PowerOff/Reboot and respective Can APIs.
- Adds the PolkicyKit interactivity flag for the power and suspend
API calls. Same as logind.
- Adds a note of when the API calls were introduced to the docs.
The goal is just to make it easier for consumers of the APIs to
support both ConsoleKit2 and logind.
The Stop/Restart API calls from ConsoleKit1 are still present
and function almost exactly the same (only change is they respect
inhibitors now). This patch fixes:
https://github.com/ConsoleKit2/ConsoleKit2/issues/10
|
|
Emulate the logind API to make it more easier for porting to
ConsoleKit2 for the CanSuspend/CanHibernate/CanHybridSleep methods.
They now return:
yes - system can and user explicitly authorized by polkit, rbac, or neither is running
no - system can and user explicitly unauthorized by polkit or rbac
challenge - system can and user requires elevation via polkit
na - system does not support it (hardware or backend support missing).
The auth methods have been removed.
Currently HybridSleep only works on Linux.
|
|
We need a Can/Auth split for suspend/hibernate because the user
may be authorized but the system is unable to perform those
actions. Additionally start working the inhibit calls. We also
need to actually add the suspend/hibernate tools.
|
|
The initial work in progress to add in suspend/hibernate and the
inhibit locks.
|
|
|
|
|
|
|
|
Add Stop and Restart methods to the Manager object. We'll rename the
Manager object to System in the near future. Use libpolkit to
determine authorization.
|
|
Also added deprecated notes to the docs. New code should
be using GetUnixUser instead of GetUser etc.
|
|
The system idle hint is TRUE when there are no busy (ie non-idle) sessions.
So the system is idle when there are no sessions or all sessions are idle.
|
|
|