Re: [Tracker] [PATCH] Application Indexing
- From: "Michael Biebl" <mbiebl gmail com>
- To: jamie <jamiemcc blueyonder co uk>
- Cc: tracker-list gnome org
- Subject: Re: [Tracker] [PATCH] Application Indexing
- Date: Sat, 3 Mar 2007 16:49:15 +0100
1) we need to watch the dirs for desktop files (use
tracker_add_service_path to watch /usr/share/applications)
2) we use (1) above to work out its a desktop file (im not sure about
checking the extension is .desktop - Im only really interested in apps
in /usr/share/applications)
/usr/share/applications is a good default, but you should also check
the environment variable XDG_DATA_DIRS. This contains a list of paths
[2]. You should also check these paths (you have to append
"applications" to each element in XDG_DATA_DIRS).
Cheers,
Michael
[1] http://standards.freedesktop.org/basedir-spec/basedir-spec-0.5.html
[2] eg. on Gentoo:
XDG_DATA_DIRS="/usr/share:/usr/kde/3.5/share:/usr/local/share"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]