This commit is contained in:
committed by
Git OBS Bridge
parent
613fb2a0d4
commit
6ae272bfb3
27
browser
27
browser
@@ -3,21 +3,23 @@
|
||||
# browser script
|
||||
#
|
||||
# Copyright (c) 2004 SuSE Linux AG, Nuernberg, Germany.
|
||||
# Copyright (c) 2004 Werner Fink
|
||||
# Copyright (c) 2007 SuSE LINUX Products GmbH, Nuernberg, Germany
|
||||
# Copyright (c) 2004, 2007 Werner Fink
|
||||
#
|
||||
# Author: Werner Fink
|
||||
|
||||
prog=""
|
||||
for p in \
|
||||
firefox \
|
||||
Mozilla \
|
||||
mozilla \
|
||||
konqueror \
|
||||
opera \
|
||||
amaya \
|
||||
Netscape \
|
||||
netscape \
|
||||
Mosaic \
|
||||
mosaic \
|
||||
opera \
|
||||
konqueror \
|
||||
amaya
|
||||
mosaic
|
||||
do
|
||||
prog=$(type -p $p) && break
|
||||
done
|
||||
@@ -60,8 +62,8 @@ for opt in $@ ; do
|
||||
esac
|
||||
done
|
||||
|
||||
case "$prog" in
|
||||
*/[nN]etscape|*/[Mm]ozilla)
|
||||
case "${prog##*/}" in
|
||||
[nN]etscape|[Mm]ozilla)
|
||||
ret=0
|
||||
if test -n "$url" ; then
|
||||
$prog -noraise -remote "xfeDoCommand(openBrowser)" &> /dev/null && \
|
||||
@@ -72,6 +74,17 @@ case "$prog" in
|
||||
ret=$?
|
||||
fi
|
||||
test $ret -eq 0 && exit 0
|
||||
;;
|
||||
firefox)
|
||||
ret=0
|
||||
if test -n "$url" ; then
|
||||
$prog -remote "$open($url,new-window)"
|
||||
ret=$?
|
||||
elif test -n "$cmd" ; then
|
||||
echo "${prog##*/} does not support $cmd"
|
||||
exit 1
|
||||
fi
|
||||
test $ret -eq 0 && exit 0
|
||||
esac
|
||||
|
||||
# You are at your own
|
||||
|
Reference in New Issue
Block a user