Re: [Tracker] Tracker / Tomboy / Maemo
- From: Cornelius Hald <hald icandy de>
- To: Ivan Frade <ivan frade nokia com>
- Cc: "tracker-list gnome org" <tracker-list gnome org>
- Subject: Re: [Tracker] Tracker / Tomboy / Maemo
- Date: Tue, 16 Jun 2009 21:20:38 +0200
I spend some time today trying to get my code running. Unfortunately
without success yet. I hope someone here can help me, because I just ran
out of ideas :(
Here is what I did so far:
* I wrote a indexer module with the filename tomboy-notes.c which
compiles into libtracker-module-tomboy-notes.so. It's mainly boiler
plate code with very simple *_get_text() and *_get_metadata()
* The file tomboy-notes.c is in my own project, not in the tracker
source tree. So to make it compile I had to copy the tracker-module-*.h
headers to my project. Not sure if that matters. Everything seems to
* Wrote a module file (code is below) and put it here:
* Created a metadata file (code is below) here:
* Added the following to:
When I'm running "tracker-services -s" I get:
That looks good to me :)
When I'm running "tracker-services -p" I get:
Which looks also good.
But if I'm running "tracker-search -s TomboyNotes Hello" I get:
Service not recognized, searching in other files...
Which doesn't look that good to me.
Next thing is the log files:
tracker-indexer.log always only shows the following two lines:
16 Jun 2009, 21:00:40: Tracker-Critical **: Could not initialize the HAL
context, no error, is hald running?
16 Jun 2009, 21:00:40: GVFS-RemoteVolumeMonitor-Warning **: remote
volume monitor with dbus name org.gtk.Private.HalVolumeMonitor is not
The trackerd.log shows lots of things. Some of the more remarkable
16 Jun 2009, 21:00:39: Tracker: Loading ontology service:'TomboyNotes'
with id:19 and mimes:0
16 Jun 2009, 21:00:51: Tracker: Processing module:'tomboy-notes'
16 Jun 2009, 21:00:51: Tracker: Crawling directories for
16 Jun 2009, 21:00:51: Tracker: Using module paths
16 Jun 2009, 21:00:51: Tracker: Directory:'/home/conny/.conboy' added
to list to crawl exists
16 Jun 2009, 21:00:51: Tracker: Directory:'/home/conny/.tomboy' does
16 Jun 2009, 21:00:51: Tracker: Searching
16 Jun 2009, 21:00:51: Tracker: Found :'/home/conny/.conboy' (0)
16 Jun 2009, 21:00:51: Tracker: Added monitor for module:'tomboy-notes',
path:'/home/conny/.conboy', total monitors:1
16 Jun 2009, 21:00:51: Tracker:
Found :'/home/conny/.conboy/7e941c07-20dc-44ee-9e16-d7622a1cf93d.note' (1)
16 Jun 2009, 21:00:51: Tracker:
Found :'/home/conny/.conboy/deffb5b8-4124-425e-8148-a28779426511.note' (1)
16 Jun 2009, 21:00:58: Tracker: Queue for module:'tomboy-notes' created
items processed, sending first 20 to the indexer
Well, I know this is a lot of information at once, but I hope you can
somehow help me. To me it looks like the actual tomboy-indexer library
is never loaded. Somehow I suspect that I named something wrong and that
is not found because of that. Well, than again I'm really new to tracker
and it could be everything. Maybe I didn't understand something
fundamental at all?
So here would be my actual questions, after all this noise :)
* Why is my indexer not called?
* What is ScanTimeout and CacheTimeout and it which unit is it measured?
* Is it possible to add a new *.service file instead of extending the
The complete source code can be found here if needed:
Thank you very much :)
--------------- tomboy-notes.module -------------------
--------------- note.metadata -------------------
Description=Tags attached to the note
Description=The date the note was created
Description=The date the note was last changed
] [Thread Prev