Package: deskbar-applet
Version: 2.14.2-4.2
Severity: important
Tags: etch patch

When using iceweasel as preferred web browser in gnome, then "Web
Bookmarks", "Web History" and "Web Searches" are not available in
deskbar.

The attached patch solves this bug.

Rene Hausleitner
--- mozilla.py.old	2006-11-09 00:57:44.000000000 +0100
+++ mozilla.py	2007-02-12 08:53:59.000000000 +0100
@@ -18,7 +18,7 @@
 
 # Whether we will index firefox or mozilla bookmarks
 USING_FIREFOX = False
-if is_preferred_browser("firefox"):
+if is_preferred_browser("firefox") or is_preferred_browser("iceweasel"):
 	USING_FIREFOX = True
 		
 # File returned here should be checked for existence
@@ -110,13 +110,13 @@
 #	if deskbar.UNINSTALLED_DESKBAR:
 #		return (deskbar.Handler.HANDLER_IS_HAPPY, None, None)
 	
-	if is_preferred_browser("firefox") or is_preferred_browser("mozilla"):
+	if is_preferred_browser("firefox") or is_preferred_browser("iceweasel") or is_preferred_browser("mozilla"):
 		return (deskbar.Handler.HANDLER_IS_HAPPY, None, None)
 	else:
 		return (deskbar.Handler.HANDLER_IS_NOT_APPLICABLE, "Mozilla/Firefox is not your preferred browser, not using it.", None)
 		
 def _check_requirements_search():
-	if is_preferred_browser("firefox"):
+	if is_preferred_browser("firefox") or is_preferred_browser("iceweasel"):
 		return (deskbar.Handler.HANDLER_IS_CONFIGURABLE, _("You can customize which search engines are offered."), _on_handler_preferences)
 	elif is_preferred_browser("mozilla"):
 		# TODO - similar functionality for old-school mozilla (not firefox)
@@ -206,7 +206,8 @@
 				"/usr/lib/firefox/searchplugins",
 				"/usr/local/lib/firefox/searchplugins",
 				"/usr/lib/mozilla-firefox/searchplugins",
-				"/usr/local/lib/mozilla-firefox/searchplugins"]
+				"/usr/local/lib/mozilla-firefox/searchplugins",
+				"/usr/lib/iceweasel/searchplugins"]
 		else:
 			smart_dirs = [
 				get_mozilla_home_file("search"),

Reply via email to