diff options
author | Benjamin Berg <bberg@redhat.com> | 2020-11-20 11:23:08 +0100 |
---|---|---|
committer | Benjamin Berg <bberg@redhat.com> | 2020-11-20 11:23:08 +0100 |
commit | affebf890fdc032f246490f6bcd8f2c7777c7be1 (patch) | |
tree | 03fb167c827c103eabc709ca6ad4caaaee11b897 /plugins/usb-protection | |
parent | 23763dfec62ff80fb7f04f39c107b1ab45296705 (diff) | |
download | gnome-settings-daemon-affebf890fdc032f246490f6bcd8f2c7777c7be1.tar.gz |
usb-protection: Do not warn about ServiceUnknown errors for USBGuard
It is expected for USBGuard to not be installed on many systems. We
should not warn about that DBus error, as it does not indicate an issue.
Closes: #567
Diffstat (limited to 'plugins/usb-protection')
-rw-r--r-- | plugins/usb-protection/gsd-usb-protection-manager.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/usb-protection/gsd-usb-protection-manager.c b/plugins/usb-protection/gsd-usb-protection-manager.c index 0b0557fe..63a4e0d7 100644 --- a/plugins/usb-protection/gsd-usb-protection-manager.c +++ b/plugins/usb-protection/gsd-usb-protection-manager.c @@ -154,7 +154,8 @@ dbus_call_log_error (GObject *source_object, result = g_dbus_proxy_call_finish (G_DBUS_PROXY (source_object), res, &error); - if (result == NULL) + if (result == NULL && + !g_error_matches (error, G_DBUS_ERROR, G_DBUS_ERROR_SERVICE_UNKNOWN)) g_warning ("%s: %s", msg, error->message); } |