aboutsummaryrefslogtreecommitdiffstats
path: root/www/seamonkey
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2002-11-28 06:48:54 +0800
committermarcus <marcus@FreeBSD.org>2002-11-28 06:48:54 +0800
commita9c7f9f51e5ae991f96c5140fa915273f9ed36d6 (patch)
treed31fcb6e70ff2530548b46468c1abf456789e8d3 /www/seamonkey
parentae20c6025564fc8e321d7aac4d57ebda109444ba (diff)
downloadfreebsd-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/seamonkey')
-rw-r--r--www/seamonkey/Makefile2
-rw-r--r--www/seamonkey/files/mozilla.sh19
2 files changed, 13 insertions, 8 deletions
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