summaryrefslogtreecommitdiff
path: root/patches/src680/sensible-browser.diff
blob: 2e6cc957cd6e79dad9ea0ea2d76902151c040269 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Index: shell/source/unix/misc/gnome-open-url.sh
===================================================================
RCS file: /cvs/gsl/shell/shell/source/unix/misc/gnome-open-url.sh,v
retrieving revision 1.3
diff -u -u -r1.3 gnome-open-url.sh
--- shell/source/unix/misc/gnome-open-url.sh	13 May 2005 07:31:07 -0000	1.3
+++ shell/source/unix/misc/gnome-open-url.sh	6 Jun 2005 09:43:06 -0000
@@ -49,7 +49,11 @@
     ;;
 esac
 
-# use gnome-open utility coming with libgnome if available
-gnome-open $1 2>/dev/null || "$0.bin" $1
+if which gnome-open; then
+	# use gnome-open utility coming with libgnome if available
+	gnome-open $1 2>/dev/null
+else
+	sensible-browser $1
+fi
 
 exit 0
Index: shell/source/unix/misc/kde-open-url.sh
===================================================================
RCS file: /cvs/gsl/shell/shell/source/unix/misc/kde-open-url.sh,v
retrieving revision 1.2
diff -u -u -r1.2 kde-open-url.sh
--- shell/source/unix/misc/kde-open-url.sh	10 May 2004 13:08:06 -0000	1.2
+++ shell/source/unix/misc/kde-open-url.sh	6 Jun 2005 09:43:06 -0000
@@ -51,9 +51,9 @@
 
 # special handling for mailto: uris
 if echo $1 | grep '^mailto:' > /dev/null; then
-  kmailservice $1 &
+  sensible-ooomua $1 &
 else
-  kfmclient openURL $1 &
+  sensible-browser $1 &
 fi
 
 exit 0
Index: shell/source/unix/misc/open-url.sh
===================================================================
RCS file: /cvs/gsl/shell/shell/source/unix/misc/open-url.sh,v
retrieving revision 1.2
diff -u -u -r1.2 open-url.sh
--- shell/source/unix/misc/open-url.sh	10 May 2004 13:08:30 -0000	1.2
+++ shell/source/unix/misc/open-url.sh	6 Jun 2005 09:43:06 -0000
@@ -116,6 +116,8 @@
   if [ $BROWSER ]; then
     $BROWSER $1 &
     exit 0
+  elif [ -x /usr/bin/sensible-browser ]; then
+    sensible-browser $1
   else
     # mozilla derivates may need -remote semantics
     for i in mozilla netscape firefox; do