Tuesday, September 6, 2016

Changing search engine on Raspberry pi 3 (from duckduckgo to google)

original info from here:

sudo leafpad /usr/share/glib-2.0/schemas/org.gnome.epiphany.gschema.xml
Then locate this block of XML:
  1. <key type="s" name="keyword-search-url">
  2. <default>'https://www.google.com/search?q=%s'</default>
  3. <summary>URL Search</summary>
  4. <description>Search string for keywords entered in the URL bar.</description>
  5. </key>
The line <default>'https://duckduckgo.com/?q=%s&t=raspberrypi'</default> is what you need to change. Replace https://duckduckgo.com/?q=%s&t=raspberrypi withhttps://www.google.com.au/#q=%s
Next compile the xml with this:

sudo glib-compile-schemas /usr/share/glib-2.0/schemas

The original article above has you install what I am guessing is the schema compiler, but that didn't work on the raspian I'm running and the compile-schemas was already there when I ran it.

No comments:

Post a Comment