View Single Post
mosen's Avatar
Community Council | Posts: 1,669 | Thanked: 10,227 times | Joined on Nov 2014 @ Lower Rhine
#96
The attached files are missing on 2.0.2.45 in
/home/nemo/.mozilla/mozembed/searchplugins/

Always good to have a 3rd, unupdated jolla at hand to compare

Just copying the xmls back does not bring back yandex, google etc.
In /usr/share/jolla-settings/pages/browser/browser.qml there is a reference to a list of seachengines but i can not see where it is stored.

Code:
                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++
                        })
                    }
                }
I expected to simply edit the list like it was hardcoded sometimes before 2.0 i guess:

Code:
                menu: ContextMenu {
                    MenuItem {
                        text: "Google"
                    }
                    MenuItem {
                        text: "Bing"
                    }
                    MenuItem {
                        text: "Yahoo"
                    }
                    MenuItem {
                        text: "DuckDuckGo"
                    }
                }
Maybe coderus can help?
Attached Files
File Type: zip search_xmls.zip (9.0 KB, 45 views)
 

The Following 3 Users Say Thank You to mosen For This Useful Post: