diff options
Diffstat (limited to 'linden/indra/newview/linux_tools/launch_url.sh')
-rwxr-xr-x | linden/indra/newview/linux_tools/launch_url.sh | 14 |
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 @@ | |||
17 | URL="$1" | 17 | URL="$1" |
18 | 18 | ||
19 | if [ -z "$URL" ]; then | 19 | if [ -z "$URL" ]; then |
20 | echo Usage: $0 URL | 20 | echo "Usage: $0 URL" |
21 | exit | 21 | exit |
22 | fi | 22 | fi |
23 | 23 | ||
24 | # restore LD_LIBRARY_PATH from SAVED_LD_LIBRARY_PATH if it exists | ||
25 | if [ "${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}'" | ||
28 | fi | ||
29 | |||
24 | # if $BROWSER is defined, use it. | 30 | # if $BROWSER is defined, use it. |
25 | XBROWSER=`echo "$BROWSER" |cut -f1 -d:` | 31 | XBROWSER=`echo "$BROWSER" |cut -f1 -d:` |
26 | if [ ! -z "$XBROWSER" ]; then | 32 | if [ ! -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..." |
42 | fi | 48 | fi |
43 | 49 | ||
44 | # else kfmclient | 50 | # else kfmclient |
@@ -81,6 +87,6 @@ if which netscape >/dev/null; then | |||
81 | exit | 87 | exit |
82 | fi | 88 | fi |
83 | 89 | ||
84 | echo 'Failed to find a known browser. Please consider setting the $BROWSER environment variable.' | 90 | echo '$0: Failed to find a known browser. Please consider setting the $BROWSER environment variable.' |
85 | 91 | ||
86 | # end. | 92 | # end. |