Spotlight support

Jeremy Allison jra at samba.org
Wed Apr 16 15:31:44 MDT 2014


On Thu, Apr 10, 2014 at 01:42:48PM +0200, Ralph Böhme wrote:
> Hi!
> 
> For all interested in Samba supporting Spotlight for OS X clients:
> 
> <https://github.com/slowfranklin/samba/commits/spotlight>
> 
> is already working as far as correctly replying to queries from
> clients. \o/
> 
> Samba acts as a proxy fowarding search queries to Gnome Tracker after
> mapping Apple's Spotlight query language to SPARQL.
> 
> IPC between Samba and the Tracker store is done via dbus in the
> relevant tracker library (libtracker-sparql). As all but the very
> latest Tracker version register services in DBUS user context, I have
> to use a bit of a hack in order to
> 
> - run Tracker in root DBUS user context
> 
> - pair every call to tracker in Samba within
>   become_root()/unbecome_root()
> 
> Latest Tracker 1.0 adds support for registering Tracker in DBUS system
> context, which will allow for a cleaner integration in the future.
> 
> Usage:
> 
> - install tracker and libtracker-sparql-dev (or whatever it's called
>   on your system)
> 
> - use a script like the following for starting Samba and a "private"
>   dbus instance: <https://gist.github.com/slowfranklin/10371423>
> 
> - install a dbus-session.conf file in the location referenced in the
>   start script and adust path in listen directive:
>   <https://gist.github.com/slowfranklin/8a52c36be3b6579f62ab>
>   
> - configure samba with --enable-spotlight
> 
> Comments welcome :-)

So I'd love to see you finish this up and send
it as a patchset to samba-technical for formal
review.

I think there are a lot of people who'd love to
see this working.

Cheers,

	Jeremy.


More information about the samba-technical mailing list