#!/bin/sh
# browser by Jun Nishii <jun@vinelinux.org>
# Time-stamp: <08/03/13 16:27:04 iwamoto>

if [ -z "$BROWSER" ] ; then
        # we need to find a browser on this system
        # BROWSER=`type -path netscape`
        BROWSER=`type -path firefox`
        if [ -z "$BROWSER" ] || [ ! -e "$BROWSER" ] ; then
        # not found yet
                BROWSER=
        fi
fi

if [ -z "$BROWSER" ] ; then
        # we need to find a browser on this system
        BROWSER=`type -path w3m`
        if [ -z "$BROWSER" ] || [ ! -e "$BROWSER" ] ; then
        # not found yet
                BROWSER=
        else
                BROWSER="kterm -e w3m"
        fi
fi
export BROWSER
