summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorabs <abs>2002-03-26 22:43:46 +0000
committerabs <abs>2002-03-26 22:43:46 +0000
commit1d09cc61bdd951f279de81b20f58fcffa7558af4 (patch)
tree91ff89cfa9141ad6489e24b76e1f2d4e757ec0cb /www
parent08c76243b5c8bff5f4a5407d689d60effc0435ea (diff)
downloadpkgsrc-1d09cc61bdd951f279de81b20f58fcffa7558af4.tar.gz
Update ns-remote to 1.6
Replace 'ns-remote: not running on display :0.0' error message with more appropriate 'Netscape not running. Spawning new browser in the background' From Benjamin Wong in PR pkg/15615
Diffstat (limited to 'www')
-rw-r--r--www/ns-remote/Makefile4
-rwxr-xr-xwww/ns-remote/files/ns-open10
2 files changed, 9 insertions, 5 deletions
diff --git a/www/ns-remote/Makefile b/www/ns-remote/Makefile
index 851ec283a2f..a11fca0e798 100644
--- a/www/ns-remote/Makefile
+++ b/www/ns-remote/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.11 2001/12/22 14:43:19 abs Exp $
+# $NetBSD: Makefile,v 1.12 2002/03/26 22:43:46 abs Exp $
DISTNAME= ns-remote
-PKGNAME= ns-remote-1.5
+PKGNAME= ns-remote-1.6
CATEGORIES= www
MASTER_SITES= http://home.netscape.com/newsref/std/
DISTFILES= remote.c vroot.h
diff --git a/www/ns-remote/files/ns-open b/www/ns-remote/files/ns-open
index 46ce6345afd..8b2fdc1bba6 100755
--- a/www/ns-remote/files/ns-open
+++ b/www/ns-remote/files/ns-open
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: ns-open,v 1.7 2002/03/11 10:18:25 abs Exp $
+# $NetBSD: ns-open,v 1.8 2002/03/26 22:43:46 abs Exp $
#
# Simple script to open a URL in Netscape, starting a new process if necessary
# If a netscape process is not running it will look for a valid netscape
@@ -83,8 +83,12 @@ if [ -z "$START_NEW_NETSCAPE" ];then
NS_REMOTE_ARGS="$NS_REMOTE_ARGS -remote openBrowser"
fi
fi
- if ns-remote $NS_REMOTE_ARGS ; then
- exit 0
+ if ns-remote -noraise 2>/dev/null; then
+ if ns-remote $NS_REMOTE_ARGS ; then
+ exit 0
+ fi
+ else
+ echo "Netscape not running. Spawning new browser in the background." >&2
fi
fi