2023-09-05 21:14:40 +00:00
|
|
|
set -e
|
|
|
|
|
|
|
|
base="$1"
|
|
|
|
|
|
|
|
TMPDIR="$ROOT_TMPDIR/$base"
|
|
|
|
XDG_RUNTIME_DIR="$TMPDIR/.run"
|
|
|
|
XDG_DATA_HOME="$TMPDIR/.data"
|
|
|
|
|
|
|
|
mkdir -p "$TMPDIR" "$XDG_RUNTIME_DIR" "$XDG_DATA_HOME"
|
|
|
|
|
2023-09-06 19:06:03 +00:00
|
|
|
cat <<EOF
|
|
|
|
export TMPDIR="$TMPDIR"
|
|
|
|
export XDG_RUNTIME_DIR="$XDG_RUNTIME_DIR"
|
|
|
|
export XDG_DATA_HOME="$XDG_DATA_HOME"
|
|
|
|
cd "$TMPDIR"
|
|
|
|
EOF
|