aboutsummaryrefslogtreecommitdiffstats
path: root/bin/www-browser
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2004-08-31 07:36:38 +0000
committerFrederic Lepied <flepied@mandriva.com>2004-08-31 07:36:38 +0000
commitdb759897e48dad8143124764f585a242bd2929a7 (patch)
tree9f6173869ffca8344d4e96f96e047364f6074bcf /bin/www-browser
parent1e10f223bc1255660f4d4395d1cac148cb166793 (diff)
downloadcommon-data-db759897e48dad8143124764f585a242bd2929a7.tar
common-data-db759897e48dad8143124764f585a242bd2929a7.tar.gz
common-data-db759897e48dad8143124764f585a242bd2929a7.tar.bz2
common-data-db759897e48dad8143124764f585a242bd2929a7.tar.xz
common-data-db759897e48dad8143124764f585a242bd2929a7.zip
first version
Diffstat (limited to 'bin/www-browser')
-rwxr-xr-xbin/www-browser26
1 files changed, 26 insertions, 0 deletions
diff --git a/bin/www-browser b/bin/www-browser
new file mode 100755
index 0000000..7575b84
--- /dev/null
+++ b/bin/www-browser
@@ -0,0 +1,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