From 4fe9fbe2bea9a6f6885e65a42f75e04f8959e72e Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 7 Dec 2018 13:59:09 -0500 Subject: [PATCH] system-helper: Strip polkit errors before sending them on We shouldn't put the unsightly dbus error wrapping in the UI. The cient already strips the wrapping from the system helper call, but it can't strip the second level itself. Closes: #2399 Approved by: mwleeds --- system-helper/flatpak-system-helper.c | 1 + 1 file changed, 1 insertion(+) diff --git a/system-helper/flatpak-system-helper.c b/system-helper/flatpak-system-helper.c index adf13961..27ed525b 100644 --- a/system-helper/flatpak-system-helper.c +++ b/system-helper/flatpak-system-helper.c @@ -1475,6 +1475,7 @@ flatpak_authorize_method_handler (GDBusInterfaceSkeleton *interface, NULL, &error); if (result == NULL) { + g_dbus_error_strip_remote_error (error); g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_FAILED, "Authorization error: %s", error->message); return FALSE;