Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23292 - Grace 5.1.7 and 5.1.10 cannot access help files and silently depend on Netscape
Summary: Grace 5.1.7 and 5.1.10 cannot access help files and silently depend on Netscape
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Mamoru KOMACHI (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-22 16:02 UTC by Alexandre Rostovtsev (RETIRED)
Modified: 2003-09-08 13:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Rostovtsev (RETIRED) gentoo-dev 2003-06-22 16:02:55 UTC
Grace 5.1.7 and 5.1.10 by default run the following command to access help
files:  "netscape -remote openURL\\\\(%s,new-window\\\\) >>/dev/null 2>&1 ||
netscape %s" (this can be changed by the configure flag --with-helpviewer).
If $GRACE_HELPVIEWER is defined, they run that instead.

The ebuilds do not modify this default, and do not set GRACE_HELPVIEWER. This
has 2 problems:
1. Most users do not have an executable called netscape in their path.
2. More importantly, Grace looks for its html help files in $GRACE_HOME/doc
(/usr/share/grace/doc by default), but the ebuilds put the help files in
$PREFIX/share/doc/$PF/html (/usr/share/doc/grace-5.1.*/html by default). Thus,
even IF there is netscape, it won't find the help files...

The following is a hack to solve it (for mozilla and Grace 5.1.10):
ln -s /usr/share/doc/grace-5.1.10/html /usr/share/grace/doc
echo 'export GRACE_HELPVIEWER="mozilla -remote openURL\\\\(%s,new-window\\\\)
>>/dev/null 2>&1 || mozilla %s" ' >> /etc/profile.env

Ideally, the ebuild should be changed to:
1. add the symlink to $GRACE_HOME/doc
2. depend on a simple, lightweight html viewer
3. set GRACE_HELPVIEWER in /etc/profile.env to use that html viewer
4. set configure --with-helpviewer to use mozilla instead of netscape 

This bug is somewhat important, because the html files are the major
documentation for Grace, and memorizing all the features of Grace is insane :)

Reproducible: Always
Steps to Reproduce:
1. emerge grace
2. xmgrace
3. (click on help->User's Guide)

Actual Results:  
nothing happens :)

Expected Results:  
an html viewer with the user's guide appears...
Comment 1 foser (RETIRED) gentoo-dev 2003-07-27 12:42:02 UTC
this is not a gnome or gtk+ app.

Comment 2 Mamoru KOMACHI (RETIRED) gentoo-dev 2003-09-08 13:43:29 UTC
Fixed in 5.1.10-r1 and 5.1.12-r1. Thanks for reporting.