Re: [Tracker] runtime checking for tracker availability






* Ulrik Mikaelsson:

    That would work on 98% of all systems, but I would really like a
    completely generic test...

You could just go ahead and pretend to make a query, and check for nulls or a particular exception in the DBus return values.

That way you'll pickup everything, even if tracker isn't in a standard prefix (I do that since it's CVS, however I do have to copy the dbus service file into a system dir).






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