summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColomban Wendling <[email protected]>2024-10-02 12:00:21 +0200
committerColomban Wendling <[email protected]>2024-10-02 12:00:21 +0200
commit0f754df9f40b32753e03749168aaeb3d83121882 (patch)
tree8584c5e2b22fe311c3cd940d020b5928139a0843
parent6561790b03041e1c888c309ef17912058ae5aa2e (diff)
downloadmate-power-manager-0f754df9f40b32753e03749168aaeb3d83121882.tar.bz2
mate-power-manager-0f754df9f40b32753e03749168aaeb3d83121882.tar.xz
manager: Don't error-out on logind communication failure
Closes #400.
-rw-r--r--src/gpm-manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpm-manager.c b/src/gpm-manager.c
index 30cf92a..4005062 100644
--- a/src/gpm-manager.c
+++ b/src/gpm-manager.c
@@ -1751,7 +1751,7 @@ gpm_manager_systemd_inhibit (GDBusProxy *proxy) {
&error );
//append all our arguments
if (proxy == NULL) {
- g_error ("Error connecting to dbus - %s", error->message);
+ g_warning ("Error connecting to dbus - %s", error->message);
g_error_free (error);
return -1;
}
@@ -1770,7 +1770,7 @@ gpm_manager_systemd_inhibit (GDBusProxy *proxy) {
&error
);
if (error != NULL) {
- g_error ("Error in dbus - %s", error->message);
+ g_warning ("Error in dbus - %s", error->message);
g_error_free (error);
return -EIO;
}