← Back to team overview

desktop-packages team mailing list archive

[Bug 852803] Re: liblightdm-qt: power.cpp using incorrect interfaces and Session Bus

 

The attachment "Quick fix for the problems mentioned" of this bug report
has been identified as being a patch.  The ubuntu-reviewers team has
been subscribed to the bug report so that they can review the patch.  In
the event that this is in fact not a patch you can resolve this
situation by removing the tag 'patch' from the bug report and editing
the attachment so that it is not flagged as a patch.  Additionally, if
you are member of the ubuntu-sponsors please also unsubscribe the team
from this bug report.

[This is an automated message performed by a Launchpad user owned by
Brian Murray.  Please contact him regarding any issues with the action
taken in this bug report.]

** Tags added: patch

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to lightdm in Ubuntu.
https://bugs.launchpad.net/bugs/852803

Title:
  liblightdm-qt: power.cpp using incorrect interfaces and Session Bus

Status in Light Display Manager:
  Fix Committed
Status in “lightdm” package in Ubuntu:
  Fix Committed

Bug description:
  Version: 0.9.7
  Distributions used: Debian Sid (aptosid) and Ubuntu 11.10 beta 1
  Arch: x86

  Hi,

  I've been noticing that when running lightdm-qt-greeter, the shutdown
  etc. options have been disabled.

  Looking at liblightdm-qt's power.cpp, I've noticed that it's doing the following:
  * Not explicitly specifying the use of the System Bus. When not given a forth parameter explictly stating what Bus to use, QDBusInterface uses the Session Bus by default. All the power-related daemons uses the System Bus to the best of my knowledge.
  * For the ConsoleKit QDBusInterface it's specifying "org.freedesktop.ConsoleKit" as the interface when it should be "org.freedesktop.ConsoleKit.Manager"
  * For the suspend and hibernate options, it's using the "org.freedesktop.PowerManagement" interface. As I'm a latecomer to Linux, I do not know much about Linux power managment daemons and the like, but Google suggests that UPower is "in" now. Accordingly, I've changed the paths and names to use UPower's, like in liblightdm-gobject. Suspending works for me in KDE with this change.

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/852803/+subscriptions