GNOME Bugzilla – Bug 682470
Results from search providers are added twice
Last modified: 2012-08-22 19:01:30 UTC
See attached screenshot...scrolling down I see --- Applications --- Settings --- Places and Devices --- Documents --- Contacts --- Documents --- Contacts ---
Created attachment 222149 [details] screenshot
Yeah, that's a known problem actually - what's happening is that you have duplicated search providers in XDG_DATA_DIRS (most likely the system one and one from jhbuild). I still have an unfinished patch lying around locally somewhere, should get that finished ...
Created attachment 222157 [details] [review] remoteSearch: Don't add providers more than once Currently we load all search providers from XDG_DATA_DIRS, so if the same provider is installed several times in different directories, we happily show duplicate results. To fix, keep track of all remote providers we add and skip those that already have been loaded from a different directory. Oh, I was wrong - the unfinished patches were about updating providers when the keyfiles on disk change ... this issue is actually a lot easier to fix.
Review of attachment 222157 [details] [review]: Thanks, patch looks good to me
Review of attachment 222157 [details] [review]: Not the biggest fan of the global, especially if you don't re-set it for every loadRemoteSearchProviders call. I'd be happiest if you passed a dictionary along.
Created attachment 222179 [details] [review] remoteSearch: Don't add providers more than once Sure ...
Review of attachment 222179 [details] [review]: Thanks.
Attachment 222179 [details] pushed as 56dc2eb - remoteSearch: Don't add providers more than once