Your message dated Tue, 25 Jun 2013 12:20:26 +0000
with message-id <[email protected]>
and subject line Bug#706584: fixed in sentinella 0.9.1-3
has caused the Debian Bug report #706584,
regarding Use logind for session control
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
706584: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=706584
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sentinella
Version: 0.9.1-1
Severity: wishlist
Tags: upstream
Hi Niels,
Sorry for reporting this to you instead of upstream, but Sourceforge is
500ing for me whenever I try to do anything with bugs or repos on the
project. Perhaps you'll have more luck. It's really frustrating.
Ubuntu is trying to remove as much ConsoleKit usage as possible (in
favour of logind), since it's deprecated upstream. As part of that
effort, I wrote a patch for sentinella to try logind (preferred) over CK
and UPower to do shutdown/reboot/poweroff/hibernate. This will remove
one more (soft) dependency.
Cheers!
--
Iain Lane [ [email protected] ]
Debian Developer [ [email protected] ]
Ubuntu Developer [ [email protected] ]
>From 1326e2bd7b1d4723067bd69c27c04a7e64c25376 Mon Sep 17 00:00:00 2001
From: Iain Lane <[email protected]>
Date: Wed, 1 May 2013 22:57:20 +0100
Subject: [PATCH] Add logind support, preferred over ConsoleKit and UPower
---
src/Actions/Shutdown.cpp | 18 ++++++++++++++----
src/Actions/Sleep.cpp | 14 +++++++++++---
src/MainWindow.cpp | 49 +++++++++++++++++++++++++++++++++---------------
3 files changed, 59 insertions(+), 22 deletions(-)
diff --git a/src/Actions/Shutdown.cpp b/src/Actions/Shutdown.cpp
index d1e0777..d421114 100644
--- a/src/Actions/Shutdown.cpp
+++ b/src/Actions/Shutdown.cpp
@@ -36,10 +36,20 @@ void Shutdown::run() {
: KWorkSpace::ShutdownTypeReboot, force ? KWorkSpace::ShutdownModeForceNow
: KWorkSpace::ShutdownModeInteractive);
} else {
- interface = new QDBusInterface("org.freedesktop.ConsoleKit",
- "/org/freedesktop/ConsoleKit/Manager", "org.freedesktop.ConsoleKit.Manager",
- QDBusConnection::systemBus());
- interface->call(shutdown ? "Stop" : "Restart");
+ interface = new QDBusInterface("org.freedesktop.login1",
+ "/org/freedesktop/login1", "org.freedesktop.login1.Manager",
+ QDBusConnection::systemBus());
+ if (interface->isValid()) {
+ interface->call(shutdown ? "PowerOff" : "Reboot", false);
+ } else {
+ interface = new QDBusInterface("org.freedesktop.ConsoleKit",
+ "/org/freedesktop/ConsoleKit/Manager", "org.freedesktop.ConsoleKit.Manager",
+ QDBusConnection::systemBus());
+ if (interface->isValid()) {
+ interface->call(shutdown ? "Stop" : "Restart");
+ }
+ }
}
+
delete interface;
}
diff --git a/src/Actions/Sleep.cpp b/src/Actions/Sleep.cpp
index 52e0feb..05ba5d9 100755
--- a/src/Actions/Sleep.cpp
+++ b/src/Actions/Sleep.cpp
@@ -35,9 +35,17 @@ void Sleep::run() {
else if (state == Solid::PowerManagement::HibernateState)
interface->call("Hibernate");
} else {
- interface = new QDBusInterface("org.freedesktop.UPower", "/org/freedesktop/UPower",
- "org.freedesktop.UPower", QDBusConnection::systemBus());
- interface->call(state == Solid::PowerManagement::SuspendState ? "Suspend" : "Hibernate");
+ interface = new QDBusInterface("org.freedesktop.login1",
+ "/org/freedesktop/login1", "org.freedesktop.login1.Manager",
+ QDBusConnection::systemBus());
+ if (interface->isValid()) {
+ interface->call(state == Solid::PowerManagement::SuspendState ?
+ "Suspend" : "Hibernate", false);
+ } else {
+ interface = new QDBusInterface("org.freedesktop.UPower", "/org/freedesktop/UPower",
+ "org.freedesktop.UPower", QDBusConnection::systemBus());
+ interface->call(state == Solid::PowerManagement::SuspendState ? "Suspend" : "Hibernate");
+ }
}
delete interface;
}
diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp
index 274c6ec..72c3f3d 100644
--- a/src/MainWindow.cpp
+++ b/src/MainWindow.cpp
@@ -129,6 +129,7 @@ void MainWindow::checkShutdownSleepStates() {
QDBusInterface* interface = new QDBusInterface("org.kde.ksmserver", "/KSMServer",
"org.kde.KSMServerInterface");
QDBusReply<bool> boolReply = interface->call("canShutdown");
+ QDBusReply<QString> stringReply;
if (boolReply.isValid()) {
supportedShutdown = boolReply;
isKDE = true;
@@ -145,23 +146,41 @@ void MainWindow::checkShutdownSleepStates() {
} else {
//see http://upower.freedesktop.org/docs/UPower.html
delete interface;
- interface = new QDBusInterface("org.freedesktop.ConsoleKit",
- "/org/freedesktop/ConsoleKit/Manager", "org.freedesktop.ConsoleKit.Manager",
- QDBusConnection::systemBus());
- boolReply = interface->call("CanStop");
- if (boolReply.isValid()) {
- supportedShutdown = boolReply;
- isKDE = false;
- delete interface;
-
- interface = new QDBusInterface("org.freedesktop.UPower", "/org/freedesktop/UPower",
- "org.freedesktop.UPower", QDBusConnection::systemBus());
- boolReply = interface->call("SuspendAllowed");
- if (boolReply.isValid() && boolReply)
+ interface = new QDBusInterface("org.freedesktop.login1",
+ "/org/freedesktop/login1", "org.freedesktop.login1.Manager",
+ QDBusConnection::systemBus());
+ if (interface->isValid()) {
+ stringReply = interface->call("CanPowerOff");
+ if (stringReply.isValid()) {
+ supportedShutdown = stringReply.value() == "yes";
+ isKDE = false;
+ }
+ stringReply = interface->call("CanSuspend");
+ if (stringReply.isValid() && stringReply.value() == "yes")
supportedSleepStates.insert(Solid::PowerManagement::SuspendState);
- boolReply = interface->call("HibernateAllowed");
- if (boolReply.isValid() && boolReply)
+
+ stringReply = interface->call("CanHibernate");
+ if (stringReply.isValid() && stringReply.value() == "yes")
supportedSleepStates.insert(Solid::PowerManagement::HibernateState);
+ } else {
+ interface = new QDBusInterface("org.freedesktop.ConsoleKit",
+ "/org/freedesktop/ConsoleKit/Manager", "org.freedesktop.ConsoleKit.Manager",
+ QDBusConnection::systemBus());
+ boolReply = interface->call("CanStop");
+ if (boolReply.isValid()) {
+ supportedShutdown = boolReply;
+ isKDE = false;
+ delete interface;
+
+ interface = new QDBusInterface("org.freedesktop.UPower", "/org/freedesktop/UPower",
+ "org.freedesktop.UPower", QDBusConnection::systemBus());
+ boolReply = interface->call("SuspendAllowed");
+ if (boolReply.isValid() && boolReply)
+ supportedSleepStates.insert(Solid::PowerManagement::SuspendState);
+ boolReply = interface->call("HibernateAllowed");
+ if (boolReply.isValid() && boolReply)
+ supportedSleepStates.insert(Solid::PowerManagement::HibernateState);
+ }
}
}
--
1.8.1.2
--- End Message ---
--- Begin Message ---
Source: sentinella
Source-Version: 0.9.1-3
We believe that the bug you reported is fixed in the latest version of
sentinella, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Joao Eriberto Mota Filho <[email protected]> (supplier of updated
sentinella package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Mon, 03 Jun 2013 16:19:50 -0300
Source: sentinella
Binary: sentinella
Architecture: source amd64
Version: 0.9.1-3
Distribution: experimental
Urgency: low
Maintainer: Joao Eriberto Mota Filho <[email protected]>
Changed-By: Joao Eriberto Mota Filho <[email protected]>
Description:
sentinella - System monitor that can react to user chosen conditions
Closes: 706584
Changes:
sentinella (0.9.1-3) experimental; urgency=low
.
* New patches:
- logind: modifies source code to operate using logind
instead ConsoleKit (deprecated upstream). Thanks to
Iain Lane <[email protected]>. (Closes: #706584)
- sentinella.desktop: creates Keyword category in desktop file.
Checksums-Sha1:
fa26b48511c5a9a20dac708da33c7c7497068431 2090 sentinella_0.9.1-3.dsc
bef055993c88962f0a3d265394f3934c1170ff68 13955 sentinella_0.9.1-3.debian.tar.gz
fe1c9b3aa56e5730fa5470c9cc13b18d799f2726 253074 sentinella_0.9.1-3_amd64.deb
Checksums-Sha256:
b84fadfa51d806a53edb0e61f7bdf97c1e0878f5b3fd3de78b7dc1f9fe820938 2090
sentinella_0.9.1-3.dsc
37df8b846a1153769b6d6c5efcaa349cf33a8fafc2d3aab756dbadcd09565309 13955
sentinella_0.9.1-3.debian.tar.gz
cb56227e6193b9315943fbd4fc43447fb28326ba806f38b589b1e730b0061b8c 253074
sentinella_0.9.1-3_amd64.deb
Files:
8b3ef43ddbf86bc65f624688327d31e1 2090 kde optional sentinella_0.9.1-3.dsc
94f309a190047adfabd689118fb895a2 13955 kde optional
sentinella_0.9.1-3.debian.tar.gz
6f3ad71fb68edea35544ec806d907c30 253074 kde optional
sentinella_0.9.1-3_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iQIcBAEBCAAGBQJRyYUPAAoJEAVLu599gGRCCz0QAKvBlR6k7QwSnVdaeXeqsdA5
yzwd4Vr3lCU7kYfR8kR3k7gSCjedv/bPEffAGqpAOrD9rU002LlOwQ5E/VULWy90
cKSvmFtlYgN4AaXBsvhdCV7gQGKHqPVe010u2DQ39fFfvGwVMcEUhKceIlQhJRu7
8+3SNcX7JBpcd7BmW74ZYRnc/DxZ2xVWyvmbG9pxRQpyryxcGdWH1SFONEIao7u3
Dq85TfIAykH+/VR19mYkyDV93VA0SVlUa3aqtUt0zsY7e1N4oJ5p87+IMLB8O4dl
/xqJIuG9TiPRY8rneH3nPVfsNbpBRSp0MBg2jmwJznIs6Y8NngoTjwcFFKHZsMj/
Era+WDFsWS2ADaivsw9qql3GuPbLXmhvJ7jLUM2+wWBDWnKbTmoMPAMGSbmDSh8f
8lPRcAli+/2mEnlYCy+D+Uxna9hfQQTjPARW3ddZRAixf0nb2HLDqLgnD+ex2X01
b2mxOoypDLqsrCY9zmgwbbyGcVNw1q68MAvUpc8hyaaP4m6kKOsm7rk+xT+yDBKr
d9VH1RAHOsV+D8RBehiLDFsohAnvc4vhY7Dn79ja5HLEBbTvOT+kNH2CVdco8CvC
yYetmtaqsXUHDk2zOiml8SXIAKCYmwwWXXKPX5K1qbGFGPjDD2Ini3aius9Z/XIn
PTWp4/WFJP0GG0SgbC/g
=awcZ
-----END PGP SIGNATURE-----
--- End Message ---