7

When I press the Super key I see the Overview window. From here I can search current open windows, files, Software Senter, etc, but I couldn't find how to make it search in Google. Looks like there should be a search provider for it, but I couldn't find it in GNOME Extensions portal.

Am I missing something?

My setup is GNOME Shell 3.32.0 (Ubuntu)

Overview

3 Answers3

2

Using GNOME Web (Epiphany):

You can pass searches to gnome's browser Epiphany by installing it and then enabling "web" as a search provider.

Using Firefox:

You can pass searches to Firefox, but it takes two more steps. If Firefox defaults to searching with google, you will see Google results. Clicking on one opens in Firefox.

First, create a text file named org.mozilla.firefox.search-provider.ini and save it /usr/share/gnome-shell/search-providers

Here are the contents of the file (or download it here):

[Shell Search Provider]
DesktopId=firefox.desktop
BusName=org.mozilla.Firefox.SearchProvider
ObjectPath=/org/mozilla/Firefox/SearchProvider
Version=2

Then you need to create a preference in firefox. Create it, it is not there.

go to about:config, search for

browser.gnome-search-provider.enabled

and use the + button to add it. Make sure the value is true. Restart firefox

Go to Gnome Settings for Search and make sure Firefox is enabled as a search provider.

Now, search from the Gnome shell.

Source: https://mastransky.wordpress.com/2020/09/25/firefox-gnome-shell-search-provider/

Flimm
  • 44,031
1

The google search provider is available in the gnome extensions portal here.

It's reported to work with gnome-shell v.3.18.5 but I personally haven't tested it.

One alternative is the Web Search Dialog extension available here or on the project page here

It's pretty old and hasn't been updated in years but you might be able to get it to work by changing the version number in metadate.json

Another alternative would be to simply do your web searches from within your favorite browser. Personally I've found this approach to be highly effective.

A third alternative would be to develop your own using the data available here.

Elder Geek
  • 36,752
1

There is a GNOME Shell extension on GitHub called Web Search Provider for GNOME Shell that lets you add different web search providers.

Note that adding Extensions from non trusted sources is unsupported, not recommended and you may encounter stability and/or security issues.

Now if you still want to set it up, download the extension:

git clone --depth=1 https://github.com/mrakow/gnome-shell-web-search-provider ~/.local/share/gnome-shell/extensions/gnome-shell-web-search-provider@mrakow.github.com

Edit config.json file:

gedit ~/.local/share/gnome-shell/extensions/gnome-shell-web-search-provider@mrakow.github.com/config.json

And replace its content with the following:

{
  "searchEngines": {
    "Google Search": {
      "urlTemplate": "https://www.google.com/search?q={searchTerms}",
      "iconPath": "/usr/share/icons/gnome/256x256/actions/search.png"
    }
  }
}

Restart GNOME Shell: Alt+F2, r, then Enter. Or logout and login again (for Wayland).

Enable the Web Search Provider extension in GNOME Tweaks or at https://extensions.gnome.org/local.

Now a Google Search entry should appear whenever you use GNOME Shell search.

Tested on Ubuntu 19.04