Re: [Tracker] runtime checking for tracker availability



Mikkel Kamstrup Erlandsen wrote:
2006/10/20, Edward Duffy <eduffy gmail com <mailto:eduffy gmail com>>:

    Until dbus 0.9+ makes into most distros, you can check the lock file

    # lsof ~/.Tracker/${USER}_tracker_lock

    this'll return 0 if trackerd is running by ${USER}, 1 otherwise.


Oh, perhaps I was unclear. I need to check if tracker is _installed_ (I could check for existence of ~/.Tracker but that dir only exists if trackerd has been run). I can check if trackerd is _running_ by dbus.NameHasOwner("org.freedesktop.Tracker"). I could manually scan the $PATH for trackerd but that seems unelegant...


you could check for usr/share/tracker (or usr/local/share/tracker)


--
Mr Jamie McCracken
http://jamiemcc.livejournal.com/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]