summaryrefslogtreecommitdiff
path: root/www/ns-remote/files
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/ns-remote/files
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/ns-remote/files')
-rwxr-xr-xwww/ns-remote/files/ns-open10
1 files changed, 7 insertions, 3 deletions
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