[Tracker] patch: tracker-tag doesnot work as expected
- From: jerry tan <Jerry Tan Sun COM>
- To: Tracker-List <tracker-list gnome org>
- Subject: [Tracker] patch: tracker-tag doesnot work as expected
- Date: Mon, 23 Jul 2007 21:49:43 +0800
Tracker-tag for the current svn does not work as expected on solaris.
1. tracker-tag -a keyword file
doesnot work
2. when I use TST add one tag for one file,
I can not use tracker-tag -s keyword to list it.
here is the patch.
Index: src/trackerd/tracker-dbus-keywords.c
===================================================================
--- src/trackerd/tracker-dbus-keywords.c (revision 711)
+++ src/trackerd/tracker-dbus-keywords.c (working copy)
@@ -491,7 +491,7 @@
str_select = g_string_append (str_select, "' || S.Name as EntityName from Services S,
ServiceKeywordMetaData M ");
- char *related_metadata = tracker_get_related_metadata_names (db_con, "DC:Keywords");
+ char *related_metadata = tracker_get_related_metadata_names (db_con, "User:Keywords");
str_where = g_string_new ("");
Index: src/libtracker/tracker-tag.c
===================================================================
--- src/libtracker/tracker-tag.c (revision 711)
+++ src/libtracker/tracker-tag.c (working copy)
@@ -135,9 +135,10 @@
if (files)
for (i = 0; files[i] != NULL; i++) {
- gchar *tmp = realpath (files[i], NULL);
+ char resolved_path[PATH_MAX];
+ gchar *tmp = realpath (files[i], resolved_path);
if (tmp) {
- gchar *utf = g_filename_to_utf8 (tmp, -1, NULL, NULL, NULL);
+ gchar *utf = g_filename_to_utf8 (resolved_path, -1, NULL, NULL, NULL);
g_free (files[i]);
g_free (tmp);
files[i] = utf;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]