Subject: Re: Netscape strange behaviors
To: None <dante@neomedia.it, thieleke@ix.netcom.com>
From: Arne H. Juul <arnej@pvv.ntnu.no>
List: netbsd-help
Date: 07/26/1996 12:04:00
 > > I'm sure the file XKeysymDB is installed and readed (otherwise I'd get
 > > more warnings).
 > 
 > The only way I found around this problem was to copy XKeysymDB to
 > /usr/X11R6/lib/X11, and then make a link from /usr/X11R6 to /usr/X11
 > (yuck).  Netscape is apparently hard coded to look for XKeysymDB in
 > /usr/X11/lib/x11.  But at least it solves your problem.

Here's our netscape script, just as a tip to others on some things
that may be useful to do.

#!/bin/sh
XKEYSYMDB=/store/lib/X11/netscape/XKeysymDB
CLASSPATH=/store/lib/X11/netscape/moz3_0.zip:$CLASSPATH
export XKEYSYMDB CLASSPATH

case `storearch` in
  *linux*|sun4os4*|alphaosf*|*netbsd*)
	XNLSPATH=/store/lib/X11/netscape/nls
	export XNLSPATH
	;;
esac

hnp=$HOME/.netscape/preferences
USER="${LOGNAME-${USER-`logname`}}"
	
if [ -f $hnp ]; then
	if grep "^EMAIL_ADDRESS:[ 	]*$USER\$" $hnp >/dev/null ; then
		dom=`cat /store/lib/domain`
		if [ "$dom" = "" ] ; then
			echo 'WARNING: mail domain unknown.
			You need to set your mail address correct manually.
			(in options/preferences/mail and news menu).' 1>&2
		else
			chmod u+w $hnp &&
			ed $hnp << EOF
/^EMAIL_ADDRESS:[ 	]*$USER/s=\$=@$dom=p
w
q
EOF
		fi
	fi
fi

exec /store/bin/netscape.exe ${1+"$@"}