2 local APP_NAME
="tiefighter"
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 APP_DISK
="/usr/share/games/${APP_NAME}/disk"
7 local BRANCHES_D
="/etc/${APP_NAME}.d"
8 local DOSBOX_CONF
="${XDG_CONFIG_HOME}/${APP_NAME}/$(basename $(dosbox -printconf))"
11 if [ ! -f "${DOSBOX_CONF}" ]; then
12 install -Dm644 $
(dosbox
-printconf) "${DOSBOX_CONF}"
15 if [ ! -d "${RW_BRANCH}" ]; then
19 mkdir
-p "${RW_BRANCH}" "${APP_DIR}" &&
20 RW_BRANCH
="${RW_BRANCH}" modfs -o cow -o "uid=${UID}" -o "gid=${GROUPS[0]}" "${BRANCHES_D}" "${APP_DIR}" &&
25 fusermount
-u "${APP_DIR}" &&
29 tiefighter.firstRun
() {