summaryrefslogtreecommitdiff
path: root/shell/source/unix/misc/cde-open-url.sh
diff options
context:
space:
mode:
Diffstat (limited to 'shell/source/unix/misc/cde-open-url.sh')
-rwxr-xr-xshell/source/unix/misc/cde-open-url.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/shell/source/unix/misc/cde-open-url.sh b/shell/source/unix/misc/cde-open-url.sh
new file mode 100755
index 000000000000..c0c38145d6ee
--- /dev/null
+++ b/shell/source/unix/misc/cde-open-url.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+if [ -x /usr/bin/mktemp ]
+then
+ TMPFILE=`mktemp -t open-url.XXXXXX`
+else
+ DTTMPDIR=`xrdb -query | grep DtTmpDir`
+ TMPFILE=${DTTMPDIR:-$HOME/.dt/tmp}/open-url.$$
+fi
+
+if [ -z "$TMPFILE" ]; then exit 1; fi
+( echo "$1" > "$TMPFILE"; dtaction Open "$TMPFILE"; rm -f "$TMPFILE" ) &
+exit 0