[Nepomuk] Bugs, Patches and Scripts. - StrigiService & KInotify

Vishesh Handa handa.vish at gmail.com
Wed May 5 16:46:18 CEST 2010


> Damn, this is a tricky one.
> How about a hacky solution: the file watch service does not update the
> config but writes a log of moved and watched folders.
> This log can be read by strigi after or before updating the index and
> then it can update its config itself without triggering a re-index.
>
>
I was thinking somewhat the same thing except that I've added variable
"restart" to the nepomukstrigiconfig.

The patch works perfectly apart from one thing. In the
IndexWriter::slotConfigChanged, I need to set the "restart" variable in the
strigiconfig to true, if it is false. How do I do that without triggering
the slotConfigChaged function ? I tried disconnected the slot and then later
reconnecting it, but it didn't work! :-(

I've modified the patch that if a folder who's parent is being watch is
moved to a non-indexed location. It gets added to the indexed folders list.
A slight problem that arises (which we can do nothing about unless inotify
improves) is if the folder is moved to a non-watched location. Then the
EvenMoveTo event doesn't occur, and we can't update its location in the
strigi config or update its metadata.

Is what I'm doing with the Regex obvious in
FileWatch::handleStrigiIndexedFolder or should I add comments to explain?

- Vishesh Handa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/nepomuk/attachments/20100505/69794bc2/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-patch
Size: 7563 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/nepomuk/attachments/20100505/69794bc2/attachment.diff 


More information about the Nepomuk mailing list