Spotlight cannot search in user homes.
After executing the following commands, I succeeded in search from OS X.
$ su # emacs .tracker_profile # cat .tracker_profile PREFIX="/usr/local" export XDG_DATA_HOME="$PREFIX/var/netatalk/" export XDG_CACHE_HOME="$PREFIX/var/netatalk/" export DBUS_SESSION_BUS_ADDRESS="unix:path=$PREFIX/var/netatalk/spotlight.ipc" # . .tracker_profile # tracker-control -S # tracker-control -t # tracker-control -s # tracker-control -f ~username # tracker-info ~username
In case of user home, indexing looks imperfect.
General volume can be searched.
Env:
Ubuntu 13.10
Netatalk 3.1.0
It became impossible to search a user home, again!
The following logs are seen when searching.
I was able to search after reindexing.
When netatalk(8) starts, it sets up paths for spotlight.
Since user has not logged in yet, nobody sets up home's path.
I wrote a workaround patch.
The proposed patch doesn't cut it and needs more thinking. It only does a one time crawl and indexing, but doesn't configure Tracker to monitor paths for filesystem activity.
Since I do not understand the spec of Tracker, I cannot write a better patch.
Is it difficult?
For someone very familiar with the Netatalk code and Tracker possibly half a day or more for getting in right, it might even not be doable at all in a sensible way that works across all use cases, not sure.
I cannot understand what is a problem.
I have always succeeded in search.
Immediately after creating a text file on server, I can discover it from client.
Tracker seems to always watch my home directory.
workaround patch for netatalk 3.1.4
workaround patch for netatalk 3.1.5
I guess the but still exists in netatalk 3.1.7?
My patch wouldn't be adopted forever.
https://github.com/Netatalk/Netatalk/pull/7