Deskbar and the Mozilla/Firefox bookmarks search

I wasn’t getting the Mozilla/Firefox features appearing in Deskbar. In other words: searching bookmarks, using the quick searches and using the search engine(s).

After some digging around the python source and some truss output I found that it searched for the ‘enabled’ flag in the gconf preferences:

  /usr/lib/python2.4/vendor-packages/deskbar/BrowserMatch.py

  def is_preferred_browser(test):
        # We will import only if the user's preferred browser is mozilla
        http_handler = gconf.client_get_default().get_string(
            "/desktop/gnome/url-handlers/http/command").strip().lower()
        if not gconf.client_get_default().get_bool(
            "/desktop/gnome/url-handlers/http/enabled"):
                return False

        if http_handler.find(test) != -1:
                return True

        http_handler = http_handler.split(" ")[0]

For some reason I didn’t have an ‘enabled’ key. I added it using gconf-editor, restarted Deskbar and voilà – my Firefox searches appeared. Magic. Anyone know why that key was missing?

One possible cause is that I didn’t delete any of my Gnome config files when I moved to snv_41. AFAIK Chris *did* delete his Gnome config and his Deskbar Mozilla/Firefox searching worked first time.

Advertisements
Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: