GNOME Bugzilla – Bug 741714
extension-installed search providers are not visible in the control center
Last modified: 2015-04-27 08:16:50 UTC
I installed https://extensions.gnome.org/extension/565/gajim-im-integration/ to improve Gajim IM integration with gnome-shell. However, it also installs a gnome-shell search provider for searching in the contact list. I don't like that feature and would like to disable that. So I went to control-center into Search form and wanted to disable it, but it's not listed there. It seems that only core gnome-shell search provides are listed in control-center -> Search, but no extension-installed search providers. It would make sense to list both, so that there is a single place where to configure search results. Also, if the extension doesn't allow to configure searching itself, there's currently no place where to disable it (except for uninstalling the extension completely). Unfortunately, this is the case for extension linked above. So, I could ask the extension developer to allow me to configure this in extension preferences. But I think it would be very helpful (and consistent) if all of this could be configured in a single place (control-center). Thank you. control-center-3.14.2-1.fc21.x86_64 gnome-shell-3.14.2-1.fc21.x86_64
Extensions being necessary to extend the search results was before we implemented D-Bus search providers, and the search panel. Your extension needs updating to offer a D-Bus service for the search, so it shows up in the Search panel. When you're monkey-patching gnome-shell through extensions, we have no way of knowing that, and we won't be able to present anything in the Search panel to activate/deactivate them I'm afraid.
OK, I see, so the requested functionality is actually supported, it's just a problem of this particular extension, it does not implement it via the correct interfaces. Thanks for info, I'll request a change in that particular extension.
I don't see how extensions can provide a SearchProvider D-Bus service currently, The loadRemoteSearchProviders() function in remoteSearch.js reads files in /usr/share/gnome-shell/search-providers/ and loads the providers from ini files.
(In reply to Philippe Normand from comment #3) > I don't see how extensions can provide a SearchProvider D-Bus service > currently, The loadRemoteSearchProviders() function in remoteSearch.js reads > files in /usr/share/gnome-shell/search-providers/ and loads the providers > from ini files. They can't. Not sure who said they could...
(In reply to Bastien Nocera from comment #4) > They can't. Not sure who said they could... That's what I understood and then asked Philippe to implement it: https://github.com/philn/gnome-shell-gajim-extension/issues/20 Bastien, if I understand it correctly this time: a) only system-wide installed extensions can use dbus search providers and then show up in gnome-control-center search configuration b) the only way how to configure search in a user-local installed extension is through its own preferences (provided it offers this configuration) Can you please confirm whether this is correct? Are there any plans to make user-local installed extensions integrated with gnome-control-center search configuration some day?
(In reply to Kamil Páral from comment #5) > (In reply to Bastien Nocera from comment #4) > > They can't. Not sure who said they could... > > That's what I understood and then asked Philippe to implement it: > https://github.com/philn/gnome-shell-gajim-extension/issues/20 > > Bastien, if I understand it correctly this time: > a) only system-wide installed extensions can use dbus search providers and > then show up in gnome-control-center search configuration Yes. > b) the only way how to configure search in a user-local installed extension > is through its own preferences (provided it offers this configuration) Correct. > Can you please confirm whether this is correct? > > Are there any plans to make user-local installed extensions integrated with > gnome-control-center search configuration some day? No. You should probably have gajim offer the search results, there's really no point in the extension providing it itself.