ConsoleKit2 support for screenlocker

Review Request #124469 - Created July 26, 2015 and submitted

Information
Eric Koegel
plasma-workspace
master
Reviewers
plasma

ConsoleKit2 has the same API as systemd-logind for Lock, Unlock,
PrepareForSleep, and Inhibit. This patch adds the functionality
for ConsoleKit2 while attempting to minimize code duplication.

dbus-send --system --dest=org.freedesktop.ConsoleKit --type=method_call --print-reply --reply-timeout=2000 /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.ListInhibitors
method return sender=:1.1 -> dest=:1.80 reply_serial=2
array [
struct {
string "suspend"
string "NetworkManager"
string "NetworkManager needs to turn off networks"
string "delay"
uint32 0
uint32 3473
}
struct {
string "handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch"
string "PowerDevil"
string "KDE handles power events"
string "block"
uint32 1000
uint32 9587
}
struct {
string "suspend"
string "Screen Locker"
string "Ensuring that the screen gets locked before going to sleep"
string "delay"
uint32 1000
uint32 9508
}
]

Verified ConsoleKit2 does delay suspending until both delay locks are removed.

Issues

  • 0
  • 3
  • 0
  • 3
Description From Last Updated
David Edmundson
Eric Koegel
Eric Koegel
David Edmundson
Eric Koegel
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 72578284a1fda5f012cafcaccad6069fadbf9a25 by David Edmundson on behalf of Eric Koegel to branch master.
Loading...