mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-08-24 18:25:50 +00:00
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
This commit is contained in:
parent
d1689f2925
commit
afbd7f9cb6
|
@ -1,3 +1,10 @@
|
|||
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;
|
||||
|
|
Loading…
Reference in a new issue