diff options
author | abs <abs@pkgsrc.org> | 2002-03-26 22:43:46 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2002-03-26 22:43:46 +0000 |
commit | bd56a9518ddddfa8e8d590cd8bf963a1d941482e (patch) | |
tree | 91ff89cfa9141ad6489e24b76e1f2d4e757ec0cb /www | |
parent | 1bd7524124637615a4447e3a6ee77b483aad0fb2 (diff) | |
download | pkgsrc-bd56a9518ddddfa8e8d590cd8bf963a1d941482e.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/Makefile | 4 | ||||
-rwxr-xr-x | www/ns-remote/files/ns-open | 10 |
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 |