2 local APP_NAME
="ascendancy"
3 local TMPDIR
="${TMPDIR:-/tmp}"
4 local RW_BRANCH
="${XDG_DATA_HOME}/${APP_NAME}"
5 local APP_DIR
="${TMPDIR}/${APP_NAME}-tmp-${USER}"
6 local BRANCHES_D
="/etc/${APP_NAME}.d"
7 local DOSBOX_CONF
="${XDG_CONFIG_HOME}/${APP_NAME}/$(basename $(dosbox -printconf))"
10 if [ ! -f "${DOSBOX_CONF}" ]; then
11 install -Dm644 $
(dosbox
-printconf) "${DOSBOX_CONF}"
14 if [ ! -d "${RW_BRANCH}" ]; then
18 mkdir
-p "${RW_BRANCH}" "${APP_DIR}" &&
19 RW_BRANCH
="${RW_BRANCH}" modfs -o cow -o "uid=${UID}" -o "gid=${GROUPS[0]}" "${BRANCHES_D}" "${APP_DIR}" &&
24 fusermount
-u "${APP_DIR}" &&
28 ascendancy.firstRun
() {