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-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++
                        })
                    }
                }



All times are GMT. The time now is 23:22.

vBulletin® Version 3.8.8