do-plugins team mailing list archive
-
do-plugins team
-
Mailing list archive
-
Message #01355
[Bug 376836] [NEW] Tracker plugin shows two irrelevant items among search results
Public bug reported:
At top of each search using Tracker plugin, there are 2 items shown, which look like this:
Defaulting to 'files' service
Results: 24
There are 2 problems with these items:
1) They do not have any value for the user (especially the 1st one), but take 2 top places of the search results list.
2) They are treated as IFileItems by Do, while they are obviously not files.
Looking under the hood, these 2 strings come from tracker-search tool,
which is used by tracker plugin. The output of tracker search is the
following:
axe@axe-desktop:~$ tracker-search <search query>
Defaulting to 'files' service
Results: 24
<file #1>
<file #2>
<file #3>
...
The plugin reads all lines from tracker-search output, and adds them to the result list as IFileItem:
# do-plugins/Tracker/src/TrackerSearch.cs, method TrackerSearchAction.Search
string path;
while (null != (path = tracker.StandardOutput.ReadLine ())) {
files.Add (Services.UniverseFactory.NewFileItem (path.Trim()));
}
That's how these strings get into results list.
Suggestions for fix:
1) Quick'n'very dirty: make 2 ReadLine()'s before the loop :)
2) Proper: implement Tracker plugin using Tracker D-Bus API (I'll provide a link for more detailed suggestion)
Environment:
Ubuntu 9.04 x64
gnome-do 0.8.1.3 (from PPA)
gnome-do-plugins 0.8.1.3 (from PPA)
** Affects: do-plugins
Importance: Undecided
Status: New
** Tags: tracker-plugin
--
Tracker plugin shows two irrelevant items among search results
https://bugs.launchpad.net/bugs/376836
You received this bug notification because you are a member of GNOME Do
Plugins Team, which is subscribed to GNOME Do Plugins.
Follow ups
References