On Sun, Sep 27, 2015 at 08:06:56PM +0100, Ken Moffat wrote:
> I've built yelp, but it doesn't seem to work.
> 
> If I try to open help from a gnome application such as
> epiphany or gnome-terminal I get a dialog:
> 
>  There was an error displaying help
> 
>       Operation not supported
> 
> If I run yelp itself, it gives me a window headed
>             Help
>     Document not found
> 
>  and the text includes:
> The URI ‘help:gnome-help/index’ does not point to a valid page.
> 
>  There is an option below that:
> Search for packages containing the document.
> 
> If I click on that, I get a dialog:
> You do not have PackageKit. Package install links require
> PackageKit.
> 
> ĸen

We took this off the list, and found a workaround involving opening
yelp from the command line and pointing it to the desired help file.
Tonight, I've come back to this.  Along the way I've explored the
distant past recesses of ubuntu and mint forums ('fora' for any
classicists) and bugzilla entries, and eventually found something
relevant.

The file /usr/share/applications/mimeinfo.cache is a master list of
what to use for specific mime-types (and there can be an override in
~/.local).  I started by adding two lines :

x-scheme-handler/ghelpi=yelp.desktop;
x-scheme-handler/help=yelp.desktop;

That allowed 'help' to work correctly in epiphany and evince, but it
seemd like a hack.  Looking at my backups, mimeinfo.cache was last
updated during the install of fontforge.  Google quickly told me
that update-desktop-databae rebuilds this file, by default from the
.desktop files in that directory.  So, I removed my additions and
then ran

#update-desktop-database

The additions were re-added, and help now works in gucharmap and
gnome-calculator.

Note that this does NOT prevent the error message when opening yelp
itself, the probable solution to that is "don't do that, then".

I suppose I ought to add 'update-desktop-database' to the end of the
install in yelp.  Not sure if all of the mime dep(s) is/are already
pulled in for yelp.

ĸen
-- 
Il Porcupino Nil Sodomy Est! (if you will excuse my latatian)
  aka "The hedgehog song"
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to