blob: 7575b849920edfa993d8d1de73637544f86ec954 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/sh
#---------------------------------------------------------------
# Project : Mandrakelinux
# Module : bin
# File : www-browser
# Version : $Id$
# Author : Frederic Lepied
# Created On : Tue Aug 31 16:26:54 2004
# Purpose : launch a web browser
#---------------------------------------------------------------
if [[ -z "$BROWSER" ]]; then
if /sbin/pidof gnome-session > /dev/null; then
BROWSER=`which epiphany 2> /dev/null`
[[ -z "$BROWSER" ]] && BROWSER=`which galeon 2> /dev/null`
fi
[[ -z "$BROWSER" ]] && which kfmclient 2> /dev/null && BROWSER="kfmclient openProfile webbrowsing"
[[ -z "$BROWSER" ]] && BROWSER=`which epiphany 2> /dev/null`
[[ -z "$BROWSER" ]] && BROWSER=`which galeon 2> /dev/null`
[[ -z "$BROWSER" ]] && BROWSER=`which mozilla 2> /dev/null`
fi
echo "$BROWSER $@"
exec $BROWSER "$@"
# www-browser ends here
|