aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-11-04 10:00:42 -0600
committerCharles Kerr <charles.kerr@canonical.com>2014-11-04 10:00:42 -0600
commitb4db6b24159ac704a0ac37d280534bc8761240a9 (patch)
tree14939822551e5a9464af26a707585e44fb1070f2 /src
parent56e88207113e57eae7b24a718fa1ab177c6c9367 (diff)
downloadayatana-indicator-datetime-b4db6b24159ac704a0ac37d280534bc8761240a9.tar.gz
ayatana-indicator-datetime-b4db6b24159ac704a0ac37d280534bc8761240a9.tar.bz2
ayatana-indicator-datetime-b4db6b24159ac704a0ac37d280534bc8761240a9.zip
silence 'com.canonical.powerd was not provided by any .service files' warning on desktop
Diffstat (limited to 'src')
-rw-r--r--src/wakeup-timer-powerd.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wakeup-timer-powerd.cpp b/src/wakeup-timer-powerd.cpp
index ab6859f..04db898 100644
--- a/src/wakeup-timer-powerd.cpp
+++ b/src/wakeup-timer-powerd.cpp
@@ -192,8 +192,11 @@ private:
ret = g_dbus_connection_call_finish(G_DBUS_CONNECTION(o), res, &error);
if (ret == nullptr)
{
- if (!g_error_matches(error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
+ if (!g_error_matches(error, G_IO_ERROR, G_IO_ERROR_CANCELLED) &&
+ !g_error_matches(error, G_DBUS_ERROR, G_DBUS_ERROR_SERVICE_UNKNOWN))
+ {
g_warning("%s Could not set hardware wakeup: %s", G_STRLOC, error->message);
+ }
}
else
{