Add logind support (ConsoleKit and UPower suspend/resume are being deprecated)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Unity |
Fix Released
|
High
|
Martin Pitt | ||
unity (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
As per https:/
Unity calls ConsoleKit in ./UnityCore/
http://
Unfortunately it seems that using gnome-session's D-BUS API does not work. When I use Unity/indicator
Related branches
- PS Jenkins bot (community): Approve (continuous-integration)
- Marco Trevisan (Treviño): Approve
- Martin Pitt: Needs Resubmitting
-
Diff: 555 lines (+336/-63)3 files modifiedUnityCore/GnomeSessionManager.cpp (+93/-14)
UnityCore/GnomeSessionManagerImpl.h (+1/-0)
tests/test_gnome_session_manager.cpp (+242/-49)
Changed in unity (Ubuntu): | |
status: | New → In Progress |
Changed in unity (Ubuntu): | |
importance: | Undecided → High |
Changed in unity: | |
importance: | Undecided → High |
Changed in unity (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in unity: | |
status: | Fix Committed → Fix Released |
For the record, using gnome-session's D-BUS API does work in general. I can call it with gdbus and d-feet, and it always shuts down/reboots the machine properly. To add some Heisenbug fun, when I run dbus-monitor shutdown/reboot from the indicator works (I tried four times).
So this seems to be a race condition somewhere. When I install CK it works, so that fallback should be kept, and also support logind.