aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/linux_tools/launch_url.sh
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/linux_tools/launch_url.sh')
-rwxr-xr-xlinden/indra/newview/linux_tools/launch_url.sh14
1 files changed, 10 insertions, 4 deletions
diff --git a/linden/indra/newview/linux_tools/launch_url.sh b/linden/indra/newview/linux_tools/launch_url.sh
index e6450ad..d2c8919 100755
--- a/linden/indra/newview/linux_tools/launch_url.sh
+++ b/linden/indra/newview/linux_tools/launch_url.sh
@@ -17,10 +17,16 @@
17URL="$1" 17URL="$1"
18 18
19if [ -z "$URL" ]; then 19if [ -z "$URL" ]; then
20 echo Usage: $0 URL 20 echo "Usage: $0 URL"
21 exit 21 exit
22fi 22fi
23 23
24# restore LD_LIBRARY_PATH from SAVED_LD_LIBRARY_PATH if it exists
25if [ "${SAVED_LD_LIBRARY_PATH+isset}" = "isset" ]; then
26 export LD_LIBRARY_PATH="${SAVED_LD_LIBRARY_PATH}"
27 echo "$0: Restored library path to '${SAVED_LD_LIBRARY_PATH}'"
28fi
29
24# if $BROWSER is defined, use it. 30# if $BROWSER is defined, use it.
25XBROWSER=`echo "$BROWSER" |cut -f1 -d:` 31XBROWSER=`echo "$BROWSER" |cut -f1 -d:`
26if [ ! -z "$XBROWSER" ]; then 32if [ ! -z "$XBROWSER" ]; then
@@ -37,8 +43,8 @@ if [ ! -z "$XBROWSER" ]; then
37 $XBROWSER "$URL" & 43 $XBROWSER "$URL" &
38 exit 44 exit
39 fi 45 fi
40 echo "Couldn't find the browser specified by \$BROWSER ($BROWSER)" 46 echo "$0: Couldn't find the browser specified by \$BROWSER ($BROWSER)"
41 echo "Trying some others..." 47 echo "$0: Trying some others..."
42fi 48fi
43 49
44# else kfmclient 50# else kfmclient
@@ -81,6 +87,6 @@ if which netscape >/dev/null; then
81 exit 87 exit
82fi 88fi
83 89
84echo 'Failed to find a known browser. Please consider setting the $BROWSER environment variable.' 90echo '$0: Failed to find a known browser. Please consider setting the $BROWSER environment variable.'
85 91
86# end. 92# end.