Hi,I think g_content_type_guess_for_tree() don't working properly for tracker's purpose.I wrote sample code to confirm above function.I put many mp3 & jpeg files in /home/simon/Documents directory.This program prints nothing.#####################################################include <gio/gio.h>int main(void){GList* list;GList* lm;gint i = 0;GFile* dir = NULL;const gchar* path = "/home/simon/Documents";gchar** guess_type;g_type_init();list = g_content_types_get_registered();/*for(lm = list; lm ; lm = g_list_next(lm)) {g_print("%s\n",lm->data );}*/dir = g_file_new_for_path(path);if(!dir) {g_print("g_file_new_for_path error\n");} else {g_print("Dir path: %s\n", g_file_get_path(dir));}guess_type = g_content_type_guess_for_tree(dir);if(guess_type) {g_print("There are many types in %s\n", path);while(guess_type[i]) {g_print("%d: %s\n",i, guess_type[i]);i++;}}g_strfreev (guess_type);g_list_foreach(list, g_free, NULL);g_list_free(list);return 0;}##############################################################Thank you.Simon
2011/2/10 simon hong <simon hong81 gmail com>I don't think so.this is different from https://bugzilla.gnome.org/show_bug.cgi?id=640845This cannot recognize my data disc's contents (many mp3 and jpg files)2011/1/31 Ivan Frade <ivan frade gmail com>Could it be related with this bug?
https://bugzilla.gnome.org/show_bug.cgi?id=640845
Ivan
> _______________________________________________
On Mon, Jan 31, 2011 at 11:10 AM, Aleksander Morgado
<aleksander lanedo com> wrote:
> On Mon, 2011-01-31 at 14:51 +0900, simon hong wrote:
>> Hi tracker folks,
>> I want to index Optical disc's contents (data disc I made).
>>
>>
>> When I insert my data disc(that have a lot of mp3 and jpeg files),
>> tracker don't start to index.
>>
>>
>> In the source (tracker-storage.c), mount_guess_content_type() function
>> returns following values.
>> is_optical = true, is_multimedia = false, is_blank = true.
>>
>>
>> Tracker-miner-files don't index the inserted optical disc because
>> is_blank is set to TRUE.
>>
>>
>> In the mount_guess_content_type(), g_content_type_guess_for_tree()
>> returns NULL.
>> Why g_content_type_guess_for_tree() returns NULL?
>>
>
> No idea why it returns NULL truth be told. Maybe it's the mix of audio
> and image files? Will try to reproduce the issue here. If possible,
> please open a bug in gnome bugzilla and attach as much additional info
> as possible.
>
> Thanks!
>
>
> --
> Aleksander
>
> tracker-list mailing list
> tracker-list gnome org
> http://mail.gnome.org/mailman/listinfo/tracker-list
>