Re: Fwd: gnome_help_display and Mallard?



On Tue, 2011-09-27 at 12:28 +0200, Zoltan Kota wrote:
> On Mon, Sep 26, 2011 at 4:39 PM, Shaun McCance <shaunm gnome org> wrote:
> > On Mon, 2011-09-26 at 13:24 +0200, Zoltan Kota wrote:
> >>
> >> Thanks for pointing it out! Hmm, The code doesn't work for mallard
> >> pages, it seems. With the xml file it works.
> >> Does anybody know if there is some issue of gnome_help_display with
> >> Mallard pages?? The current code invokes gnome_help_display to show
> >> the manual pages.
> >> Any help would be appreciated.
> >
> > Does gtk_show_uri work?
> >
> > gtk.show_uri(None, "ghelp:pybibliographer", 0)
> 
> 
> Yes, it works if I install pyblio in /usr or in /usr/local (the
> standard paths).  If I install in my home I could get the help with
> something like this, I suppose:
> gtk.show_uri(None, "ghelp:///myhome/usr/share/gnome/help/pybibliographer/C/", 0)

Yelp uses XDG_DATA_DIRS[1] to look up help. So it will just work
if the help is installed in ~/.local/share/gnome/help. If you use
any non-standard install locations, you have to set XDG_DATA_DIRS,
just as you do for custom themed icons, GSettings schemas, etc.

[1] http://standards.freedesktop.org/basedir-spec/basedir-spec-0.5.html

--
Shaun




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]