diff options
author | marcus <marcus@FreeBSD.org> | 2002-11-28 06:48:54 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2002-11-28 06:48:54 +0800 |
commit | a9c7f9f51e5ae991f96c5140fa915273f9ed36d6 (patch) | |
tree | d31fcb6e70ff2530548b46468c1abf456789e8d3 /www/mozilla-vendor | |
parent | ae20c6025564fc8e321d7aac4d57ebda109444ba (diff) | |
download | freebsd-ports-gnome-a9c7f9f51e5ae991f96c5140fa915273f9ed36d6.tar.gz freebsd-ports-gnome-a9c7f9f51e5ae991f96c5140fa915273f9ed36d6.tar.zst freebsd-ports-gnome-a9c7f9f51e5ae991f96c5140fa915273f9ed36d6.zip |
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)
Diffstat (limited to 'www/mozilla-vendor')
-rw-r--r-- | www/mozilla-vendor/Makefile | 2 | ||||
-rw-r--r-- | www/mozilla-vendor/files/mozilla.sh | 19 |
2 files changed, 13 insertions, 8 deletions
diff --git a/www/mozilla-vendor/Makefile b/www/mozilla-vendor/Makefile index 02db100a7b79..079f12661a5b 100644 --- a/www/mozilla-vendor/Makefile +++ b/www/mozilla-vendor/Makefile @@ -7,7 +7,7 @@ PORTNAME= mozilla PORTVERSION= 1.0.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= www MASTER_SITES= ${MASTER_SITE_MOZILLA} \ http://people.FreeBSD.org/~marcus/:local diff --git a/www/mozilla-vendor/files/mozilla.sh b/www/mozilla-vendor/files/mozilla.sh index 05783d57373f..7e441ab0e3fd 100644 --- a/www/mozilla-vendor/files/mozilla.sh +++ b/www/mozilla-vendor/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 |