Update ooo320-m1
[ooovba.git] / shell / source / unix / misc / cde-open-url.sh
blobc0c38145d6ee5ff5cfe90f3a30d68a3970071c89
1 #!/bin/sh
3 if [ -x /usr/bin/mktemp ]
4 then
5 TMPFILE=`mktemp -t open-url.XXXXXX`
6 else
7 DTTMPDIR=`xrdb -query | grep DtTmpDir`
8 TMPFILE=${DTTMPDIR:-$HOME/.dt/tmp}/open-url.$$
9 fi
11 if [ -z "$TMPFILE" ]; then exit 1; fi
12 ( echo "$1" > "$TMPFILE"; dtaction Open "$TMPFILE"; rm -f "$TMPFILE" ) &
13 exit 0