After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 382127 - devhelp handler is broken
devhelp handler is broken
Status: RESOLVED FIXED
Product: deskbar-applet
Classification: Deprecated
Component: general
2.17.x
Other Linux
: Normal normal
: ---
Assigned To: Deskbar Applet Maintainer(s)
Deskbar Applet Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2006-12-04 04:06 UTC by Alex Lancaster
Modified: 2007-12-29 11:51 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
Simple patch which searches for gnome-devhelp.desktop in addition to devhelp.desktop (1.06 KB, patch)
2007-12-26 17:23 UTC, Michael Lester
committed Details | Review

Description Alex Lancaster 2006-12-04 04:06:18 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):
  • File "/usr/lib/python2.4/site-packages/deskbar/ModuleLoader.py", line 91 in import_module
    mod = pydoc.importfile (filename)
  • File "/usr/lib/python2.4/pydoc.py", line 237 in importfile
    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

Comment 1 Rob Bradford 2006-12-07 17:46:53 UTC
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?
Comment 2 Alex Lancaster 2006-12-08 00:22:10 UTC
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
Comment 3 Alex Lancaster 2006-12-23 22:26:58 UTC
I can confirm that this bug is still in 2.17.2:

$ rpm -q deskbar-applet
deskbar-applet-2.17.2-2.fc6
Comment 4 Sebastian Pölsterl 2007-01-03 20:06:39 UTC
I can't reproduce this with latest trunk version on ubuntu 6.10
Comment 5 Raphael Slinckx 2007-01-07 20:46:18 UTC
Closing since nobody can reproduce.
Comment 6 Kai Thomsen 2007-07-16 00:37:32 UTC
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
Comment 7 Alex Lancaster 2007-07-18 00:39:16 UTC
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.
Comment 8 Michael Lester 2007-12-26 17:23:08 UTC
Created attachment 101630 [details] [review]
Simple patch which searches for gnome-devhelp.desktop in addition to devhelp.desktop
Comment 9 Sebastian Pölsterl 2007-12-29 11:51:00 UTC
Thanks a lot for the patch. I committed it to svn trunk.