Blob


1 #!/bin/sh
3 plumb1()
4 {
5 case x-$BROWSER in
6 # Other browsers here
7 # ...
8 *opera*)
9 $BROWSER -remote 'openURL('$i',new-page)'
10 ;;
11 *firebird*)
12 $BROWSER -remote 'openURL('$i',new-window)'
13 ;;
14 *firefox*)
15 $BROWSER -remote 'openURL('$i',new-tab)'
16 ;;
17 x-)
18 # run firefox as default!
19 firefox -remote 'openURL('$i',new-tab)'
20 ;;
21 *mozilla*)
22 $BROWSER -remote 'openURL('$i',new-tab)'
23 ;;
24 x-*)
25 $BROWSER -remote 'openURL('$i',new-tab)'
26 ;;
27 esac
28 }
30 if [ $# = 0 ]
31 then
32 plumb1 about:blank
33 else
34 for i
35 do
36 if [ -f "$i" ]
37 then
38 p=`pwd`
39 i=`cleanname -d $p $i`
40 i=file://$i
41 fi
42 plumb1 $i
43 done
44 fi
46 case $BROWSER in
47 *opera*)
48 $BROWSER -remote 'raise()'
49 esac