GNOME Bugzilla – Bug 382127
devhelp handler is broken
Last modified: 2007-12-29 11:51:00 UTC
I enabled the devhelp handler in the preferences, but no entry for launching devhelp with the selected text appears in the Actions menu. I couldn't see any obvious errors with loading that particular handler when running in debug mode, here is output: $ /usr/lib/deskbar-applet/deskbar-applet -w Running installed deskbar, using [/usr/lib/python2.4/site-packages/deskbar:$PYTHONPATH] Data Dir: /usr/share/deskbar-applet Handlers Dir: ['/home/alex/.gnome2/deskbar-applet/handlers', '/usr/lib/deskbar-applet/handlers'] Binding Global shortcut <Alt>F3 to focus the deskbar ** (deskbar-applet:6564): WARNING **: Binding '<Alt>F3' failed! Running with options: {'popup_mode': False, 'cuemiac': False, 'do_trace': False, 'standalone': True} Starting Deskbar instance: <gnome.applet.Applet object (PanelApplet) at 0xb3ffd02c> None Set entry width: 50 Layout changed to 1 Set entry width: 50 Layout changed to 1 Changing UI to: Entriac Error loading the file: /home/alex/.gnome2/deskbar-applet/handlers/delicious-deskbar.py. Traceback (most recent call last):
+ Trace 91440
mod = pydoc.importfile (filename)
raise ErrorDuringImport(path, sys.exc_info()) ErrorDuringImport: problem in /home/alex/.gnome2/deskbar-applet/handlers/delicious-deskbar.py - AttributeError: 'module' object has no attribute 'Match' Loading module 'Calculator' from file /home/alex/.gnome2/deskbar-applet/handlers/calculator.py. Loading module 'Man' from file /home/alex/.gnome2/deskbar-applet/handlers/man.py. Loading module 'Converter' from file /home/alex/.gnome2/deskbar-applet/handlers/converter.py. Loading module 'Rhythmbox Remote' from file /home/alex/.gnome2/deskbar-applet/handlers/rhythmbox.py. Loading module 'Rhythmbox Library' from file /home/alex/.gnome2/deskbar-applet/handlers/rhythmbox.py. Loading module 'CC Search' from file /home/alex/.gnome2/deskbar-applet/handlers/cc-search.py. Loading module 'SSH' from file /home/alex/.gnome2/deskbar-applet/handlers/ssh.py. Loading module 'Files and Folders Search' from file /usr/lib/deskbar-applet/handlers/programs.py. Loading module 'Dictionary' from file /usr/lib/deskbar-applet/handlers/programs.py. Loading module 'Developer Documentation' from file /usr/lib/deskbar-applet/handlers/programs.py. Loading module 'Programs' from file /usr/lib/deskbar-applet/handlers/programs.py. Loading module 'Beagle Live' from file /usr/lib/deskbar-applet/handlers/beagle-live.py. Loading module 'Beagle' from file /usr/lib/deskbar-applet/handlers/beagle-static.py. *** *** The file /usr/lib/deskbar-applet/handlers/galago.py (GalagoHandler) decided to not load itself: Waiting for python bindings of galago. Should allow to send IM by typing name. *** Loading module 'Yahoo! Search' from file /usr/lib/deskbar-applet/handlers/yahoo.py. Loading module 'Mail (Address Book)' from file /usr/lib/deskbar-applet/handlers/evolution.py. Loading module 'del.icio.us Bookmarks' from file /usr/lib/deskbar-applet/handlers/desklicious.py. *** *** The file /usr/lib/deskbar-applet/handlers/mozilla.py (MozillaSearchHandler) decided to not load itself: Mozilla/Firefox is not your preferred browser, not using it. *** Loading module 'Window Switcher' from file /usr/lib/deskbar-applet/handlers/iswitch-window.py. Error:load_icon:Icon Load Error:Icon 'panel-window-menu' not present in theme (or Icon 'panel-window-menu.png' not present in theme) Loading module 'Web' from file /usr/lib/deskbar-applet/handlers/web_address.py. Loading module 'Fedora Bugzilla Entries' from file /usr/lib/deskbar-applet/handlers/fedorabz.py. *** *** The file /usr/lib/deskbar-applet/handlers/epiphany.py (EpiphanyBookmarksHandler) decided to not load itself: Epiphany is not your preferred browser, not using it. *** Loading module 'Files, Folders and Places' from file /usr/lib/deskbar-applet/handlers/files.py. Loading module 'Computer Actions' from file /usr/lib/deskbar-applet/handlers/gdmactions.py. Loading module 'History' from file /usr/lib/deskbar-applet/handlers/history.py. Loading module 'Web Bookmarks' from file /usr/lib/deskbar-applet/handlers/galeon.py. Loading module 'Web History' from file /usr/lib/deskbar-applet/handlers/galeon.py. Loading module 'Web Searches' from file /usr/lib/deskbar-applet/handlers/galeon.py. Loading module 'Google Search' from file /usr/lib/deskbar-applet/handlers/google-live.py. Initializing Developer Documentation Initializing Programs Initializing Files and Folders Search Initializing Dictionary Initializing Web Initializing Files, Folders and Places Initializing History Initializing Beagle Initializing Converter Initializing Rhythmbox Library Initializing SSH Initializing Calculator Initializing Web Bookmarks Initializing Web Searches Initializing Fedora Bugzilla Entries Initializing CC Search Initializing Computer Actions Warning:Error while deserializing match: GnomeSearchMatch {'icon': 'gnome-searchtool', 'desktop_file': 'gnome-search-tool.desktop', 'name': 'Search for Files...', 'use_arg': True} Desktop file not found, ignoring
As we can see from that output the "Initializing Developer Documentation" indicates that the devhelp handler is loaded (as part of programs.py.) Have you checked your devhelp installation?
Yep, it works fine from the command line, for example: $ devhelp --search gtk_ opens up the devhelp application fine with "gtk_" prefilled as a search query. This is the exact version on Fedora Core 6: $ rpm -q deskbar-applet deskbar-applet-2.16.0-1.fc6
I can confirm that this bug is still in 2.17.2: $ rpm -q deskbar-applet deskbar-applet-2.17.2-2.fc6
I can't reproduce this with latest trunk version on ubuntu 6.10
Closing since nobody can reproduce.
I'm able to reproduce this bug on Fedora 7: $ rpm -q deskbar-applet deskbar-applet-2.19.3-3.fc7 It's due to Fedora-specific naming of Devhelp's .desktop file - that file is packaged as `gnome-devhelp.desktop' in Fedora (`gnome' being the vendor prefix), while I assume Ubuntu and many other distros keep the upstream filename `devhelp.desktop'. Apparently, the Devhelp handler fails silently when it can't find `devhelp.desktop'. I've submitted a patch for the Fedora deskbar-applet package: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=248318
Re-open because it can be reproduced (see comment #6), although this is a problem in the downstream package, the devhelp handler should probably be fixed to not be so sensitive to the name of the desktop file (e.g. search for desktop file that contains *devhelp.desktop) and/or complain noisily somewhere. Silent failing is not good.
Created attachment 101630 [details] [review] Simple patch which searches for gnome-devhelp.desktop in addition to devhelp.desktop
Thanks a lot for the patch. I committed it to svn trunk.