Red Hat Bugzilla – Bug 175880
Yelp fails to open any docbook files, with error "An unknown error occured There is no default action associated with this location."
Last modified: 2007-11-30 17:11:19 EST
Description of problem:
Yelp seems to be totally broken; any attempt to open an xml help file fails
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Click on Desktop/System menu -> Help, or run "yelp" from terminal
2. See "Help Topics", click on e.g. Desktop
3. Mouseover "User Guide", then click it.
mouseover shows a local URL of an xml file, of the form
Clicking on it brings up an error dialog:
bold text "An unknown error occured"
extra text: "There is no default action associated with this location."
It should open the help file.
Confirmed on another machine, with yelp-2.13.1-1
It's doing a gnome_url_show on the URL, which internally calls
gnome_vfs_url_show_with_env, which appears to be returning
Looking in Nautilus at a typical file:
It's reported as having mimetype:
Open With tab gives no applications selected for handling files of type DocBook
Looks like Yelp should be registered as a handler for DocBook files.
yelp.desktop.in.in (from upstream tarball) doesn't include any mime types, and
neither does the generated yelp.desktop (in the resulting rpm)
for related packaging notes for the specfile.
That doesn't fix it, and running
also fails (yelp tries to spawn an external progam, and if it's registered to
handle docbook, spawns itself in a loop)
Looks like get_doc_type doesn't recognize the new mimetype for DocBook, and is
returning YELP_DOC_TYPE_EXTERNAL; I'll patch this for our packages and send it
Hmmm.. nautilus is reporting it as "application/docbook+xml", but inside yelp,
gnome_vfs_get_mime_type is reporting it as "application/xml". (slow vs fast
mime sniffing?) I'll patch it so that yelp can survive either...
Grrr... at least it can start loading the user guide now, but gives an error
dialog generating the HTML:
Could not process document
The document â/usr/share/gnome/help/user-guide/C/user-guide.xmlâ could not be
processed. The file â/usr/share/yelp/xslt/db2html.xslâ is either missing, or it
is not a valid XSLT stylesheet.
On starting from a terminal we get some extra debug output:
I/O warning : failed to load external entity "/usr/share/xml/gnome/xslt/d
compilation error: file /usr/share/xml/gnome/xslt/docbook/html/db2html.xsl line
45 element include
xsl:include : unable to load
Seems to affect all documentation, not just the user guide...
This was with gnome-doc-utils-0.5.1-1; db2html-bibliography.xsl is indeed
referenced but not installed (the various other stylesheets are)
Looks like this was fixed 2 weeks ago in the upstream Makefile.am and we need a
new upstream tarball of gnome-doc-utils:
I've filed the gnome-doc-utils problem here:
Building with the fix for the mimetype problem into rawhide as yelp-2.13.2-2
Sent upstream (with patch) here: http://bugzilla.gnome.org/show_bug.cgi?id=324296