2023-09-05 21:14:40 +00:00
|
|
|
set -e
|
|
|
|
|
|
|
|
base="$1"
|
|
|
|
|
|
|
|
TMPDIR="$ROOT_TMPDIR/$base"
|
|
|
|
XDG_RUNTIME_DIR="$TMPDIR/.run"
|
2024-06-17 12:13:53 +00:00
|
|
|
XDG_STATE_HOME="$TMPDIR/.state"
|
2023-09-05 21:14:40 +00:00
|
|
|
|
2024-06-17 12:13:53 +00:00
|
|
|
mkdir -p "$TMPDIR" "$XDG_RUNTIME_DIR" "$XDG_STATE_HOME"
|
2023-09-05 21:14:40 +00:00
|
|
|
|
2023-09-06 19:06:03 +00:00
|
|
|
cat <<EOF
|
|
|
|
export TMPDIR="$TMPDIR"
|
|
|
|
export XDG_RUNTIME_DIR="$XDG_RUNTIME_DIR"
|
2024-06-17 12:13:53 +00:00
|
|
|
export XDG_STATE_HOME="$XDG_STATE_HOME"
|
2024-06-23 12:37:10 +00:00
|
|
|
export ISLE_SOCKET_PATH="$ROOT_TMPDIR/$base-daemon.sock"
|
2023-09-06 19:06:03 +00:00
|
|
|
cd "$TMPDIR"
|
|
|
|
EOF
|