Commit 06e16728 authored by Zeeshan Ali's avatar Zeeshan Ali

service-manager: 'InUse' unaffected by system components

Lets keep this property for apps only and therefore don't report
location in use for system components. With this change, gnome-shell
won't permanently show location icon in tray if automatic timezone
is enabled.

One thing this patch breaks is not to timeout if service is in use by
system components. It'll be fixed in the following patches.
parent e0f2d0be
......@@ -77,8 +77,14 @@ sync_in_use_property (GClueServiceManager *manager)
clients = g_hash_table_get_values (manager->priv->clients);
for (l = clients; l != NULL; l = l->next) {
GClueClient *client = GCLUE_CLIENT (l->data);
GClueConfig *config;
const char *id;
if (gclue_client_get_active (client)) {
id = gclue_client_get_desktop_id (client);
config = gclue_config_get_singleton ();
if (gclue_client_get_active (client) &&
!gclue_config_is_system_component (config, id)) {
in_use = TRUE;
break;
......
Markdown is supported
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