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

  • 1
  • Very old duplicate, but answer still seems to be correct. Anyways, do you really want to give Google information on everything that you type in the Gnome shell search? – pLumo Apr 16 '19 at 08:59
  • Thanks for pointing me to the original question. Unfortunately, the answer there didn't work for me. I created google.xml file, pasted the source code from the link, copied it to the /usr/share/gnome-shell/search-providers and rebooted. – Alexey Chernov Apr 16 '19 at 09:18
  • Weather the privacy issue with google. I agree to switch from Google to DuckDuckGo, but couldn't find how to implement it either. – Alexey Chernov Apr 16 '19 at 09:19
  • Welcoem to AskUbuntu! There appears to be some confusion. Ubuntu 19.10 hasn't been released yet. Please [edit] the output of lsb_release -a into your question. Thank you for helping us help you! – Elder Geek Apr 16 '19 at 15:58
  • @ElderGeek thanks for pointing out, I confused the version. It is 19.04 that I downloaded a day ago, which will be released in 2 days. But this is already a stable version. And I think this problem is more related to Gnome version, rather than Ubuntu one. – Alexey Chernov Apr 16 '19 at 17:32
  • @AlexeyChernov if you believe that's the case then it would be useful to [edit] the output of gnome-shell --version into your post as well. Comments can be deleted for many reasons. This is why it is requested to [edit] useful information into your post. – Elder Geek Apr 16 '19 at 17:50

3 Answers3

3

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
  • 41,766
Tim Richardson
  • 2,294
  • 3
  • 25
  • 43
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,023
  • 25
  • 98
  • 183
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