summaryrefslogtreecommitdiff
path: root/www/ns-remote/files
diff options
context:
space:
mode:
authorabs <abs>2003-08-05 20:22:45 +0000
committerabs <abs>2003-08-05 20:22:45 +0000
commita9485ceb8eb6f8d22f9c6972f34998c4cc94544b (patch)
tree210f73b10c48dd54acaf6a0ecad8a0d9683f6f14 /www/ns-remote/files
parent7837595b73af426c83cbd2ff7ceffdbe2322f7fd (diff)
downloadpkgsrc-a9485ceb8eb6f8d22f9c6972f34998c4cc94544b.tar.gz
Updated ns-remote to 1.8:
- Use 'openURL(about:blank,new-window)' rather than 'openBrowser', so we can open blank windows with Mozilla >= 1.3. From Todd Vierling
Diffstat (limited to 'www/ns-remote/files')
-rwxr-xr-xwww/ns-remote/files/ns-open10
1 files changed, 4 insertions, 6 deletions
diff --git a/www/ns-remote/files/ns-open b/www/ns-remote/files/ns-open
index c17e96f845b..3cd08c6ac0a 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.9 2002/09/20 11:26:52 abs Exp $
+# $NetBSD: ns-open,v 1.10 2003/08/05 20:22: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
@@ -76,12 +76,10 @@ done
if [ -z "$START_NEW_NETSCAPE" ];then
NS_REMOTE_ARGS="$NS_REMOTE_ARGS $RAISE"
if [ -z "$REMOTE_SPECIFIED" ];then
- if [ -n "$URL" ];then
- # encode , " and ` to avoid problems with openURL(x,y)
- NS_REMOTE_ARGS="$NS_REMOTE_ARGS -remote openURL(${URL},new-window)"
- else
- NS_REMOTE_ARGS="$NS_REMOTE_ARGS -remote openBrowser"
+ if [ -z "$URL" ];then
+ URL=about:blank
fi
+ NS_REMOTE_ARGS="$NS_REMOTE_ARGS -remote openURL(${URL},new-window)"
fi
if ns-remote -noraise 2>/dev/null; then
if ns-remote $NS_REMOTE_ARGS ; then