diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2002-11-27 22:48:54 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2002-11-27 22:48:54 +0000 |
commit | c5ed87bd0318668fce24ba4210c02287cc790fa6 (patch) | |
tree | d3635ba2682fda67b33532b4eb25c56c9ef5b755 /www/mozilla/files/mozilla.sh | |
parent | Sort entries. (diff) |
Fix the startup script so that it can accept option arguments. This fixes
a problem with starting Mozilla from the KDE dock if another instance of
Mozilla is already running.
Tested by: Vivek Khera <vivek@khera.org>
Approved by: portmgr (kris)
Notes
Notes:
svn path=/head/; revision=71178
Diffstat (limited to '')
-rw-r--r-- | www/mozilla/files/mozilla.sh | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/www/mozilla/files/mozilla.sh b/www/mozilla/files/mozilla.sh index cc1eff88a0b1..898fccbc6128 100644 --- a/www/mozilla/files/mozilla.sh +++ b/www/mozilla/files/mozilla.sh @@ -6,13 +6,18 @@ LOCATION='new-tab' cd $MOZILLA_DIR || exit 1 -# catch calls for mozilla mail -if [ "$1" = "-mail" ]; then - REMOTE_COMMAND="xfeDoCommand (openInbox)" -else - REMOTE_COMMAND="openURL($@, $LOCATION)" -fi - +case $1 in + -mail) + REMOTE_COMMAND="xfeDoCommand (openInbox)" + ;; + -*) + exec ./$MOZILLA_EXEC "$@" + ;; + *) + REMOTE_COMMAND="openURL($@, $LOCATION)" + ;; +esac + # process found ./$MOZILLA_EXEC -remote "ping()" && ./$MOZILLA_EXEC -remote "$REMOTE_COMMAND" && exit 0 |