After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 616548 - DIrectory lists and de-duplication in tracker-preferences
DIrectory lists and de-duplication in tracker-preferences
Status: RESOLVED FIXED
Product: tracker
Classification: Core
Component: Preferences
0.8.x
Other Linux
: Normal normal
: ---
Assigned To: tracker-preferences
Jamie McCracken
Depends on:
Blocks:
 
 
Reported: 2010-04-22 17:36 UTC by Owen Taylor
Modified: 2010-05-05 16:31 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Owen Taylor 2010-04-22 17:36:57 UTC
If you have in tracker-miner-fs.cfg

  IndexRecursiveDirectories=&DESKTOP;&DOCUMENTS;&DOWNLOAD;&MUSIC;&PICTURES;&VIDEOS;

And one of these directories happens to be the $HOME, and thus a parent of all the other directories (*), then tracker_path_list_filter_duplicates() will remove everything else, and in the tracker-preferences UI you'll just see /home/<username>, which is very confusing. 

(I suppose it could be considered a feature that it shows a simplified version of what is is going to actually do, but I think the confusion very much outweighs this.

I think tracker-preferences needs to load the preferences in some way that doesn't do the filter_duplicates() step.

(*) By accident I ended up with DOWNLOAD pointed to $HOME, but DESKTOP pointed to $HOME is probably more common.
Comment 1 Tshepang Lekhonkhobe 2010-04-22 17:49:07 UTC
That's the same bug as https://bugzilla.gnome.org/show_bug.cgi?id=614610, with better explanation.
Comment 2 Carlos Garnacho 2010-05-05 16:19:04 UTC
*** Bug 614610 has been marked as a duplicate of this bug. ***
Comment 3 Carlos Garnacho 2010-05-05 16:31:11 UTC
This bug is now fixed in master, this is twofold:

1) If a recursive directory is also in IndexSingleDirectories, the latter prevails. In this case, it would avoid full home indexing just because the downloads dir happens to be $HOME
2) tracker-preferences now shows the unfiltered list, so there's a 1:1 mapping with the configuration file.