GNOME Bugzilla – Bug 468325
Web searches extension broken
Last modified: 2011-07-10 02:25:06 UTC
The web searches extension seems to supply more search engines then what I have in my firefox. Also, when running in "only primary search engine" mode, all the engines are shown nevertheless.
Created attachment 93954 [details] Screenshot To better illustrate what I mean...
Hmm it seems to pick up the pre-installed engines from the system... I think it should have teh exact same list of engines as in the user's firefox profile, so if he/she deleted one of the defaults, it should not show up again. The "primary search engine" thing is valid anyway
I fixed that only the primary search engine is shown when this option is enabled. Regarding the other issue. I have no idea where firefox stores which search engines are enabled/disabled.
Yeah, fixed, the second issue can be disregarded.
Created attachment 96379 [details] firefox 2 search plugin
The list of user search engines can be found in an sqlite db in the search.sqlite file in the user profile directory. I've taken the liberty of adapting the existing mozilla search handler. The result is in the attachment, ready to be dropped under ~/.gnome2/deskbar-applet/modules-2.20-compatible The order of the search engines is now also taken into account, but this seems to break ordering of the module in the deskbar preferences. Don't know yet how to set the priorities of the matches correctly.
(In reply to comment #6) First of all, thanks a lot for taking the time to improve the Mozilla module. > The list of user search engines can be found in an sqlite db in the > search.sqlite file in the user profile directory. I've taken the liberty of > adapting the existing mozilla search handler. The result is in the attachment, > ready to be dropped under ~/.gnome2/deskbar-applet/modules-2.20-compatible > The big problem is that Deskbar has to work with Python 2.4 according to GNOME policy. Unfortunately, the sqlite3 module is not part of Python 2.4 nor is it a blessed external Dependency. > The order of the search engines is now also taken into account, but this seems > to break ordering of the module in the deskbar preferences. Don't know yet how > to set the priorities of the matches correctly. > Use module's set_priority_for_matches method
*** Bug 483683 has been marked as a duplicate of this bug. ***
(In reply to comment #7) > (In reply to comment #6) > First of all, thanks a lot for taking the time to improve the Mozilla module. > > > The list of user search engines can be found in an sqlite db in the > > search.sqlite file in the user profile directory. I've taken the liberty of > > adapting the existing mozilla search handler. The result is in the attachment, > > ready to be dropped under ~/.gnome2/deskbar-applet/modules-2.20-compatible > > > The big problem is that Deskbar has to work with Python 2.4 according to GNOME > policy. Unfortunately, the sqlite3 module is not part of Python 2.4 nor is it a > blessed external Dependency. Can't you make that an optional dependency detected at runtime (and perhaps also checked at configure time to print a warning for packagers) or would that also infringe with GNOME policy?
*** Bug 484189 has been marked as a duplicate of this bug. ***
Reopened because second issue hasn't been solved, yet.
*** Bug 427598 has been marked as a duplicate of this bug. ***
There is a similar issue described on https://bugs.launchpad.net/deskbar-applet/+bug/122270 "Steeps to reproduce: 1. Add deskbar-applet to a toolbar. 2. Right click on it and choose "Preferences". 3. Select "Search on the web" and click "More...". 4. Select "Show only primary search engine". 5. Close the preferences window and click on the applet. 6. The search box will appear, write something there and wait a second. Result: It will show all search engines installed on Firefox. Expected Result: It should only show the primary search engine (that one that is selected on Firefox). ... well i don't know how deskbar-applet reads the default search engine out of mozilla prefs ... but if it does not find a setting for .selectedEngine, it should use browser.search.defaultenginename instead. ... No its not set in profile prefs.js because you don't have overwritten the firefox system setting ... which might be set somewhere in /usr/lib/firefox/defaults/pref applications that want to read firefox preferences have to ensure that they read global settings as well ..."
*** Bug 490887 has been marked as a duplicate of this bug. ***
deskbar-applet development has been stalled [1]. Maintainers don't have future development plan so i am closing the bugs as WONTFIX. [1] http://mail.gnome.org/archives/desktop-devel-list/2011-June/msg00073.html