From 2186c79dbb3ca2e00d8322f473c8ad524967c6bf Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Tue, 17 Nov 2015 18:23:47 +0900 Subject: [PATCH] GClueClientInfo: Avoid calling org.freedesktop.DBus.Properties.GetAll By default, glib's GDBusProxy calls org.freedesktop.DBus.Properties.GetAll to load all properties on a loaded interface - however in this case we are creating a proxy to the system standard bus interface for the purpose of later calling GetConnectionUnixUser. GeoClue does not have permission to use the org.freedesktop.DBus.Properties interface on a proxy to org.freedesktop.DBus (and there are no properties to be loaded anyway). Note that GeoClue works fine without this patch, however this patch will avoid error messages being logged to the system logs. --- src/gclue-client-info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gclue-client-info.c b/src/gclue-client-info.c index 6bd7ef5..3e886f6 100644 --- a/src/gclue-client-info.c +++ b/src/gclue-client-info.c @@ -256,7 +256,7 @@ gclue_client_info_init_async (GAsyncInitable *initable, task = g_task_new (initable, cancellable, callback, user_data); g_dbus_proxy_new_for_bus (G_BUS_TYPE_SYSTEM, - G_DBUS_PROXY_FLAGS_NONE, + G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES, NULL, "org.freedesktop.DBus", "/org/freedesktop/DBus", -- 1.9.1