diff options
author | Zeeshan Ali <zeenix@collabora.co.uk> | 2018-11-01 17:06:18 +0100 |
---|---|---|
committer | Zeeshan Ali <zeenix@collabora.co.uk> | 2018-11-01 17:12:04 +0100 |
commit | c9f4dc72ccbc6cb18ab348f6a1a3f7937c4bc58f (patch) | |
tree | 9f93141eaa6494cda4e45cd847dc62fe8ab91a5d | |
parent | 06d46384d040da9e2c32f69105c45ffe9f8a83cc (diff) | |
download | geoclue-c9f4dc72ccbc6cb18ab348f6a1a3f7937c4bc58f.tar.gz |
service-client: Fix a check for system app
We don't want to stop a system app client on agent's behalf but our check
for system apps was inverted so we ended up doing the opposite. :( Thanks
to Florian Müllner for pointing this out.
-rw-r--r-- | src/gclue-service-client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gclue-service-client.c b/src/gclue-service-client.c index bf6dfa6..acea70c 100644 --- a/src/gclue-service-client.c +++ b/src/gclue-service-client.c @@ -340,7 +340,7 @@ on_agent_props_changed (GDBusProxy *agent_proxy, id = gclue_dbus_client_get_desktop_id (gdbus_client); max_accuracy = g_variant_get_uint32 (value); system_app = (gclue_client_info_get_xdg_id - (client->priv->client_info) != NULL); + (client->priv->client_info) == NULL); /* FIXME: We should be handling all values of max accuracy * level here, not just 0 and non-0. */ |