View Single Post
xpilz's Avatar
Posts: 9 | Thanked: 23 times | Joined on Apr 2013 @ Germany
#1
Tutorial about how to add your own search engines to the stock browser on your N9.

Hi guys. It's not possible to add a new search engine to the list from the UI. So I figured out a way to do it, via terminal. I think it's an unfinished feature, because what you have to do is pretty easy. After you finished this, the search engine will be able to be selected as an item from the list.
(If you want to change the search engine in opera, follow these instructions: http://talk.maemo.org/showthread.php?t=89244.)
In this tutorial we will add the search engine Duck Duck Go. I will also attach a proper search icon, that you can use, at the end.

First you need terminal access. Easiest way to achieve this is:
  • Settings
  • Safety
  • Developer Mode
  • Enable it and follow further instructions

Proceed with opening the terminal (icon on homescreen) and enter the following:
(note: default password is rootme)
Code:
devel-su
cd /usr/share/applications
echo "[Desktop Entry]
Version=1.0
Type=Application
Exec=/usr/bin/browser
MimeType=x-maemo-urischeme/x-web-search;
NotShowIn=X-MeeGo;
X-Maemo-Service=com.nokia.browser
Icon=icon-m-service-ddg
Name=Duck Duck Go
X-Web-Search-Key=q
X-Web-Search-Url=http://www.duckduckgo.com/" > web-search-ddg.desktop
(note: if you want to use the google button, you have to write Icon=icon-m-service-google instead of Icon=icon-m-service-ddg)

Alternatively you can copy another web-search-*.desktop to web-search-ddg.desktop and edit the specific lines.

Then you need to add this file to the UI selection menu. I have tested a bit around and saw the MimeType Parameter (written above). It contains the parameter that holds the information of the search engines (web-search files). The point is you need to edit the mimeinfo.cache file.

Code:
vi /usr/share/applications/mimeinfo.cache
#Search for web-search
#Or goto line 82
:82
#Now add web-search-ddg.desktop; at the end of the line
A
web-search-ddg.desktop;
:x
The next part is only needed if you want to use my search icon.

Get the icon on your phone. Then execute this, while still logged in as root:
(note: assuming you are, where your icon file is)
Code:
mv icon-m-service-ddg.png /usr/share/themes/blanco/meegotouch/icons
Okay nearly done. If you didn't add my icon then you can continue whatever doing before, otherwise a reboot is needed.

That's it. Thanks for reading and I'm happy for every response I get .
Attached Images
 
__________________
learning..

Last edited by xpilz; 2013-06-15 at 19:46.
 

The Following 18 Users Say Thank You to xpilz For This Useful Post: