maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   [HOWTO] Using DuckDuckGo as Default search in Sailfish (https://talk.maemo.org/showthread.php?t=92129)

seiichiro0185 2013-12-23 10:01

[HOWTO] Using DuckDuckGo as Default search in Sailfish
 
Hi,

I just discovered how one can use DuckDuckGo as the default search engine in the sailfish browser. Please note that you'll have to change system files to achive this, and that you do everything described here at your own risk! The procedure works for me, but YMMV.

Step 1: Enable developer mode, you'll need either the terminal or ssh to continue.

Step 2: Login via ssh or start terminal

Step 3: cd to /home/nemo/.mozilla/mozembed/searchplugins/

Step 4: Create a file duckduckgo.xml with the contents taken form http://pastie.org/8517520 (Thanks shmerl for this)

Step 5: cd to /usr/share/jolla-settings/pages/browser

Step 6: Make a backup copy of browser.qml !

Step 7: Get root with devel-su and edit browser.qml to look like this: https://gist.github.com/seiichiro0185/8094341

Step 8: Restart the settings app, navigate to Apps -> Browser and select DuckDuckGo from the available Search engines

Step 9: restart the Browser and enjoy ;)

Please note that this change will most likeliy be overwritten by the next update of the browser, so the changes to browser.qml will have to be repeated.

gaelic 2013-12-23 10:05

Re: [HOWTO] Using DuckDuckGo as Default search in Sailfish
 
Thanks very much. This is just great.

shmerl 2013-12-23 15:44

Re: [HOWTO] Using DuckDuckGo as Default search in Sailfish
 
Is there any need to modify about:config like here?
http://talk.maemo.org/showthread.php?t=91890

You can propose to add this QML change as part of the official UI for the browser.

seiichiro0185 2013-12-23 16:16

Re: [HOWTO] Using DuckDuckGo as Default search in Sailfish
 
no, there was no need to edit about:config. the settings app does set the defaultenginename value which is enough apparently.

youmeego 2013-12-23 16:35

Re: [HOWTO] Using DuckDuckGo as Default search in Sailfish
 
what is the default search engine of jolla? Sorry i dont own jolla

seiichiro0185 2013-12-23 16:54

Re: [HOWTO] Using DuckDuckGo as Default search in Sailfish
 
default is google and you can choose between google, bing and yahoo without this mod.

seiichiro0185 2013-12-24 07:28

Re: [HOWTO] Using DuckDuckGo as Default search in Sailfish
 
FYI: I sent a feature request to jolla to include DDG in the default choices, lets see if this goes through.

tiempjuuh 2013-12-24 08:48

Re: [HOWTO] Using DuckDuckGo as Default search in Sailfish
 
Works like a charm, thanks!

mgbler 2013-12-28 15:40

Re: [HOWTO] Using DuckDuckGo as Default search in Sailfish
 
Open FingerTerm, type:
Code:

cd /home/nemo/Downloads
curl http://pastie.org/pastes/8582714/download > ddg.sh
chmod u+x ddg.sh
devel-su
sh ddg.sh


shmerl 2013-12-29 17:03

Re: [HOWTO] Using DuckDuckGo as Default search in Sailfish
 
Quote:

Originally Posted by seiichiro0185 (Post 1400205)
FYI: I sent a feature request to jolla to include DDG in the default choices, lets see if this goes through.

Did you post it through the TJC?

UPDATE: Just found this: https://together.jolla.com/question/...e-web-browser/

seiichiro0185 2013-12-29 17:15

Re: [HOWTO] Using DuckDuckGo as Default search in Sailfish
 
I did send a mail with the request to jolla, cause TJC wasn't open at this time yet. But as you pointed out, a similar request was posted on TJC. So everyone go vote for it ;)

ljo 2013-12-29 19:08

Re: [HOWTO] Using DuckDuckGo as Default search in Sailfish
 
Quote:

Originally Posted by mgbler (Post 1401536)
Open FingerTerm, type:
Code:

cd /home/nemo/Downloads
curl http://pastie.org/pastes/8582714/download > ddg.sh
chmod u+x ddg.sh
devel-su
sh ddg.sh


You should probably quote the su curl command in the 8582714 paste eg
su nemo -c "curl ... "
otherwise you could end up with an empty duckduckgo.xml and it will use bing anyway even if you choose ddg in browser settings.

wisdomlight 2014-01-03 11:05

Re: [HOWTO] Using DuckDuckGo as Default search in Sailfish
 
Quote:

Originally Posted by mgbler (Post 1401536)
Open FingerTerm, type:
Code:

cd /home/nemo/Downloads
curl http://pastie.org/pastes/8582714/download > ddg.sh
chmod u+x ddg.sh
devel-su
sh ddg.sh


hey there.

i am no coder but can open a terminal and type in like a monkey..
is the code you gave what i need to type into my jollato get duckduckgo on my jolla?
cheers

cvp 2014-01-03 11:23

Re: [HOWTO] Using DuckDuckGo as Default search in Sailfish
 
Quote:

Originally Posted by wisdomlight (Post 1403317)
hey there.

i am no coder but can open a terminal and type in like a monkey..
is the code you gave what i need to type into my jollato get duckduckgo on my jolla?
cheers

i dont try this but it look so, that you put the line in a terminal and it will all do to get duckduckgo

cd /home/nemo/Downloads
(with this you change to directory "Downloads"

curl http://pastie.org/pastes/8582714/download > ddg.sh
(with this you download the information on pastie.org and save it to a file like ddg.sh)

chmod u+x ddg.sh
(with this you give rights to execute the ddg.sh file on your system)

devel-su
(this is needit to get root right on your phone, after this there will your password to login)

sh ddg.sh
(and the last... this will execute the file and install the information in your phone)

PS: dont kill me if i am wrong :D

cvp 2014-01-03 11:36

Re: [HOWTO] Using DuckDuckGo as Default search in Sailfish
 
ok i try this and now it happend this what ljo have write....

Quote:

You should probably quote the su curl command in the 8582714 paste eg
su nemo -c "curl ... "
otherwise you could end up with an empty duckduckgo.xml and it will use bing anyway even if you choose ddg in browser settings.
now i have a empty DuckDuckGo.xml. How can i this delete ?

------

if i try with this:
su nemo -c "curl ... "

than i get the info:
/usr/bin/curl: /usr/bin/curl: cannot execute binary file

ljo 2014-01-03 12:10

Re: [HOWTO] Using DuckDuckGo as Default search in Sailfish
 
Quote:

Originally Posted by cvp (Post 1403328)
ok i try this and now it happend this what wisdomlight have write....



now i have a empty DuckDuckGo.xml. How can i this delete ?

You need to delete it as the nemo user with rm command giving full path as argument.

Quote:

Originally Posted by cvp (Post 1403328)
if i try with this:
su nemo -c "curl ... "

than i get the info:
/usr/bin/curl: /usr/bin/curl: cannot execute binary file

This should go in the downloaded file as I wrote.

cvp 2014-01-03 13:03

Re: [HOWTO] Using DuckDuckGo as Default search in Sailfish
 
ok thanks, i see that there is a backup from original brwoser.qml

i fix it so:

Code:

devel-su
cd /usr/share/jolla-settings/pages/browser
rm browser.qml
rm browser.qml.ddg
mv browser.qml.orginal browser.qml
rm /home/nemo/.mozilla/mozembed/searchplugins/duckduckgo.xml


shmerl 2014-02-04 00:31

Re: [HOWTO] Using DuckDuckGo as Default search in Sailfish
 
FYI: Updated DuckDuckGo search plugin XML can be found here: https://duckduckgo.com/opensearch.xml
(it's the original source).

Just rename the file to duckduckgo.xml first to avoid any collisions.

Schturman 2014-02-04 19:34

Re: [HOWTO] Using DuckDuckGo as Default search in Sailfish
 
Hi
I noticed that cargo can't see files named in RTL languages, for example hebrew.
Would be nice if creator will add this support and showing hidden files..
Thanks

EDIT: Oops, it can see rtl. Sorry, my mistake..

javimerino 2014-10-23 06:29

Re: [HOWTO] Using DuckDuckGo as Default search in Sailfish
 
The browser.qml diff doesn't apply any more on 1.1.0.38. The ComboBox no longer has the names of the search engines hardcoded in the QML, now it seems to be getting them from org.sailfishos.browser.settings, any idea where that is defined?

Code:

            ComboBox {
                id: searchEngine

                width: parent.width
                //: Label for combobox that sets search engine used in browser
                //% "Search engine"
                label: qsTrId("settings_browser-la-search_engine")
                currentIndex: name2index(searchEngineConfig.value)

                menu: ContextMenu {
                    id: searchEngineMenu

                    Component {
                        id: menuItemComp

                        MenuItem {}
                    }

                    Component.onCompleted: {
                        var index = 0
                        settings.searchEngineList.forEach(function(name) {
                            var map = page._nameMap
                            // FIXME: _contentColumn should not be used to add items dynamicly
                            menuItemComp.createObject(searchEngineMenu._contentColumn, {"text": name})
                            map[name] = index
                            page._nameMap = map
                            index++
                        })
                    }
                }


coco_f2001 2014-12-12 09:58

Re: [HOWTO] Using DuckDuckGo as Default search in Sailfish
 
Just use the solution of sunkan from here:
https://together.jolla.com/question/...e-web-browser/

"cp -vi duckduckgo.xml /usr/lib/mozembedlite/chrome/embedlite/content/"

wait for some time and then you can choose the search engine in jolla settings.

Clean and easy.

romu 2015-01-07 14:34

Re: [HOWTO] Using DuckDuckGo as Default search in Sailfish
 
Hi need some help, I've tried to add DDG as search engine. Obviously, something went wrong. So I tried to go back.

Don't know what happens exactly, but search doesn't work anymore in the browser. Of course, I can open a tab to any search engine and like this, I can search. But search directly from the browser seems broken.

Any help? Thanks.

EDIT : Search works indeed, but it is so sllloooooooowwwwwwwwwww. When I tap on the "Enter" keyboard button, it takes more than 1 minute to actually launch the search, whatever the selected search engine is. HELP!


All times are GMT. The time now is 00:04.

vBulletin® Version 3.8.8