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 147728 - Dia can't find its own help pages
Dia can't find its own help pages
Status: RESOLVED DUPLICATE of bug 536334
Product: dia
Classification: Other
Component: doc
0.93
Other Linux
: Normal normal
: ---
Assigned To: Dia maintainers
Dia maintainers
Depends on:
Blocks:
 
 
Reported: 2004-07-16 16:31 UTC by J. J. Ramsey
Modified: 2008-08-10 04:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
a patch (2.27 KB, patch)
2004-09-03 16:47 UTC, Matthias Clasen
needs-work Details | Review

Description J. J. Ramsey 2004-07-16 16:31:03 UTC
1) Run ./configure with the options --prefix=/usr, --sysconfdir=/etc,
--localstatedir=/var, and --enable-gnome

2) Run make and make install

3) Click on Help -> Manual in the Dia menu

Dia will complain that there is no /usr/share/dia/help directory, even though
it's not supposed to look there for its help but rather to
/usr/share/gnome/help/dia (where the documentation is actually installed.
Comment 1 Andrew Ross 2004-07-21 09:21:57 UTC
This is also a problem in 0.94-pre1
Comment 2 Michèle Garoche 2004-08-10 18:30:22 UTC
Same here with --enable gnome built via fink on 10.3 unstable branch from the sources version 0.93.

Actually the problem resides in lib/dia_dirs.c which does not test for the GNOME variable, and uses 
DATADIR in all cases, which is wrong. 

Then, normally with gnome 2.6, the docs are read directly from xml and with yelp, not from html files 
with netscape, which is not available on all systems.

Here the path is /sw/share/gnome/help/dia/C which provides: dia.xml

So maybe it requires first a test on gnome version, second a variable for helpdir propagated through 
the code, not only through the makefile, third an option whether build xml help or html help and the 
appropriate code/makefile to do it.

I may be wrong, of course.
Comment 3 Matthias Clasen 2004-09-03 16:47:30 UTC
Created attachment 31244 [details] [review]
a patch

Here is a patch which I just put into the Fedora Core 3 build of dia.
Note that it is just a quick bandaid. A proper fix would probably 
add a get_help_dir() function, and use gnome_help_show() instead of
directly spawning yelp...
Comment 4 Lars Clausen 2005-02-27 21:30:52 UTC
Marking as confirmed.

The use of netscape (or $BROWSER if set) is clearly a hack, however most systems
have a browser available.  Using yelp for Gnome installs would probably be
preferrable.
Comment 5 Alan Horkan 2005-02-28 00:34:14 UTC
...or we could use CHM on all platforms http://gnochm.sf.net
(not entirely joking, fully searchable help is good for users).  
Comment 6 Lars Clausen 2005-03-01 18:21:54 UTC
Comment on attachment 31244 [details] [review]
a patch

Just blindly replacing netscape with yelp is not going to help non-gnome users
much.  This patch needs some #ifdef GNOME to be acceptable
Comment 7 Lars Clausen 2005-03-05 18:20:28 UTC
Marking as NEEDINFO since the patch is not acceptable in its current form.
Comment 8 André Klapper 2006-09-29 17:30:51 UTC
andrew, michele, j.j.: is this still an issue nowadays, or can this be closed as obsolete?
Comment 9 Rolf Leggewie 2008-08-10 04:41:13 UTC

*** This bug has been marked as a duplicate of 536334 ***