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 741714 - extension-installed search providers are not visible in the control center
extension-installed search providers are not visible in the control center
Status: RESOLVED NOTABUG
Product: gnome-control-center
Classification: Core
Component: Search
3.14.x
Other Linux
: Normal normal
: ---
Assigned To: Cosimo Cecchi
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-12-18 12:39 UTC by Kamil Páral
Modified: 2015-04-27 08:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kamil Páral 2014-12-18 12:39:39 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
Comment 1 Bastien Nocera 2014-12-18 15:01:44 UTC
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.
Comment 2 Kamil Páral 2014-12-22 09:55:19 UTC
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.
Comment 3 Philippe Normand 2015-04-26 10:03:25 UTC
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.
Comment 4 Bastien Nocera 2015-04-26 12:29:12 UTC
(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...
Comment 5 Kamil Páral 2015-04-27 07:05:05 UTC
(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?
Comment 6 Bastien Nocera 2015-04-27 08:16:50 UTC
(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.