summaryrefslogtreecommitdiff
path: root/src/gclue-client-info.c
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2015-11-17 18:23:47 +0900
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>2015-11-19 19:08:15 +0000
commit45593fe88e9aabcd26fc610dc3963326ed662936 (patch)
tree6fef8b2c4308993eb6865ff6a42cba7cbfe5e66b /src/gclue-client-info.c
parent4ad5069d95d681c716074d8bbfc40b6312fdbd66 (diff)
downloadgeoclue-45593fe88e9aabcd26fc610dc3963326ed662936.tar.gz
client-info: Don't load props of /org/freedesktop/DBus
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 sole 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. https://bugs.freedesktop.org/show_bug.cgi?id=92979
Diffstat (limited to 'src/gclue-client-info.c')
-rw-r--r--src/gclue-client-info.c2
1 files changed, 1 insertions, 1 deletions
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",