Commit afbd7f9c authored by Sebastian Dröge's avatar Sebastian Dröge

Check that tracker is actually running before using it (#386512). Patch by

* libnautilus-private/nautilus-search-engine-tracker.c:
(nautilus_search_engine_tracker_new): Check that tracker is
actually running before using it (#386512).
Patch by Josselin Mouette.

svn path=/trunk/; revision=13955
parent d1689f29
2008-03-19 Sebastian Dröge <slomo@circular-chaos.org>
* libnautilus-private/nautilus-search-engine-tracker.c:
(nautilus_search_engine_tracker_new): Check that tracker is
actually running before using it (#386512).
Patch by Josselin Mouette.
2008-03-19 Sebastian Dröge <slomo@circular-chaos.org>
* src/file-manager/fm-directory-view.c:
......
......@@ -258,6 +258,7 @@ nautilus_search_engine_tracker_new (void)
{
NautilusSearchEngineTracker *engine;
TrackerClient *tracker_client;
GError *err = NULL;
tracker_client = tracker_connect (FALSE);
......@@ -265,6 +266,14 @@ nautilus_search_engine_tracker_new (void)
return NULL;
}
tracker_get_version (tracker_client, &err);
if (err != NULL) {
g_error_free (err);
tracker_disconnect (tracker_client);
return NULL;
}
engine = g_object_new (NAUTILUS_TYPE_SEARCH_ENGINE_TRACKER, NULL);
engine->details->client = tracker_client;
......
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