From a9c7f9f51e5ae991f96c5140fa915273f9ed36d6 Mon Sep 17 00:00:00 2001 From: marcus Date: Wed, 27 Nov 2002 22:48:54 +0000 Subject: 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 Approved by: portmgr (kris) --- www/seamonkey/Makefile | 2 +- www/seamonkey/files/mozilla.sh | 19 ++++++++++++------- 2 files changed, 13 insertions(+), 8 deletions(-) (limited to 'www/seamonkey') diff --git a/www/seamonkey/Makefile b/www/seamonkey/Makefile index 7ef9a86ffacd..48cc223aeaf7 100644 --- a/www/seamonkey/Makefile +++ b/www/seamonkey/Makefile @@ -7,7 +7,7 @@ PORTNAME?= mozilla PORTVERSION= 1.2b -PORTREVISION?= 2 +PORTREVISION?= 3 PORTEPOCH?= 1 CATEGORIES?= www MASTER_SITES= ${MASTER_SITE_MOZILLA} \ diff --git a/www/seamonkey/files/mozilla.sh b/www/seamonkey/files/mozilla.sh index 0e34950cd32c..bbc7d2568bc6 100644 --- a/www/seamonkey/files/mozilla.sh +++ b/www/seamonkey/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 -- cgit abot/npm_and_yarn/devel/electron4/files/elliptic-6.5.3 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* Update to 0.3.2.delphij2015-10-051-2/+2
* Major update to libpinyin, fcitx and their add ons:delphij2015-03-311-4/+4
* Update fcitx to newer versions:delphij2012-10-161-4/+4
* - Update to 0.2.0wen2012-09-081-2/+2