2 if [ -z "${XDG_RUNTIME_DIR}" ]; then
3 export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir
4 if [ ! -d "${XDG_RUNTIME_DIR}" ]; then
5 mkdir "${XDG_RUNTIME_DIR}"
6 chmod 0700 "${XDG_RUNTIME_DIR}"
10 # Make temporary directory
11 mkdir -p "/tmp/${USER}"
12 chmod 770 "/tmp/${USER}"