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): yelp-2.13.2-1 mozilla-1.7.12-2 How reproducible: 100% 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. Actual results: mouseover shows a local URL of an xml file, of the form "file:/usr/share/blah/blah/blah.xml" 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." Expected results: 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 GNOME_VFS_ERROR_NO_DEFAULT
Looking in Nautilus at a typical file: /usr/share/gnome/help/user-guide/C/user-guide.xml It's reported as having mimetype: application/docbook+xml Open With tab gives no applications selected for handling files of type DocBook document.
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) See http://www.fedoraproject.org/wiki/ScriptletSnippets for related packaging notes for the specfile.
That doesn't fix it, and running yelp /usr/share/gnome/help/user-guide/C/user-guide.xml 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 upstream...
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 ocbook/html/db2html-bibliography.xsl" compilation error: file /usr/share/xml/gnome/xslt/docbook/html/db2html.xsl line 45 element include xsl:include : unable to load /usr/share/xml/gnome/xslt/docbook/html/db2html-bibliography.xsl
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: http://cvs.gnome.org/viewcvs/gnome-doc-utils/xslt/docbook/html/Makefile.am?rev=1.23&view=log
I've filed the gnome-doc-utils problem here: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=175970 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