Commit affebf89 authored by Benjamin Berg's avatar Benjamin Berg
Browse files

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
parent 23763dfe
...@@ -154,7 +154,8 @@ dbus_call_log_error (GObject *source_object, ...@@ -154,7 +154,8 @@ dbus_call_log_error (GObject *source_object,
result = g_dbus_proxy_call_finish (G_DBUS_PROXY (source_object), result = g_dbus_proxy_call_finish (G_DBUS_PROXY (source_object),
res, res,
&error); &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); g_warning ("%s: %s", msg, error->message);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment