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