summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2007-01-23 11:29:17 +0000
committerOliver Bolte <obo@openoffice.org>2007-01-23 11:29:17 +0000
commitad0ec894898fa9fa45e4e31873e191114309b67c (patch)
treef42f267322a26dd06d2bf7b9bfae3d4dada1040f /shell
parent8abbbc9e39aeb21eccbf8b0336994c1b845906fa (diff)
INTEGRATION: CWS obr04 (1.3.120); FILE MERGED
2006/12/20 15:03:25 obr 1.3.120.2: #i72544# patch applied 2006/12/20 14:56:46 obr 1.3.120.1: #i72328# patch applied
Diffstat (limited to 'shell')
-rwxr-xr-xshell/source/unix/misc/open-url.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/shell/source/unix/misc/open-url.sh b/shell/source/unix/misc/open-url.sh
index 09a3496b1cad..a59096f12076 100755
--- a/shell/source/unix/misc/open-url.sh
+++ b/shell/source/unix/misc/open-url.sh
@@ -96,15 +96,15 @@ esac
# special handling for mailto: uris
if echo $1 | grep '^mailto:' > /dev/null; then
# check $MAILER variable
- if [ $MAILER ]; then
- $MAILER $1 &
+ if [ ! -z "$MAILER" ]; then
+ $MAILER "$1" &
exit 0
else
# mozilla derivates may need -remote semantics
for i in thunderbird mozilla netscape; do
mailer=`which $i`
if [ ! -z "$mailer" ]; then
- run_mozilla $mailer $1
+ run_mozilla "$mailer" "$1"
exit 0
fi
done
@@ -113,15 +113,15 @@ if echo $1 | grep '^mailto:' > /dev/null; then
fi
else
# check $BROWSER variable
- if [ $BROWSER ]; then
- $BROWSER $1 &
+ if [ ! -z "$BROWSER" ]; then
+ $BROWSER "$1" &
exit 0
else
# mozilla derivates may need -remote semantics
for i in firefox mozilla netscape; do
browser=`which $i`
if [ ! -z "$browser" ]; then
- run_mozilla $browser $1
+ run_mozilla "$browser" "$1"
exit 0
fi
done