1#!/bin/sh
2#
3# GPL
4#
5# Copyright (C) 1998, Cristian Gafton <gafton@redhat.com>
6#               1998, Lars Torben Wilson <torben@netmill.com>
7#
8# If netscape isn't available, run lynx in a xiterm
9# First try standard path, then local, then other possible paths
10#
11
12for app in sensible-browser x-www-browser firefox mozilla opera konqueror netscape; do
13	full_path=`which $app`
14	if [ "x$full_path" != "x" ] ; then
15     		$app @datarootdir@/doc/afterstep/html/index.html & exit
16	fi
17done
18
19for lynx in /usr/bin/lynx /bin/lynx /usr/local/bin/lynx ; do
20    if [ -x $lynx ] ; then
21	if [ -x /usr/bin/aterm ] ; then
22	    exec /usr/bin/aterm -e $lynx @datarootdir@/doc/afterstep/html/index.html &
23	elif [ -x /usr/local/bin/aterm ] ; then
24	    exec /usr/local/bin/aterm -e $lynx @datarootdir@/doc/afterstep/html/index.html &
25	else
26	    exec xterm -bg black -fg white -sl 500 -vb -e $lynx @datarootdir@/doc/afterstep/html/index.html &
27	fi
28    fi
29done
30