summaryrefslogtreecommitdiffstats
path: root/src/os-plugins/plugins/emufe/files/run-virt.include
diff options
context:
space:
mode:
Diffstat (limited to 'src/os-plugins/plugins/emufe/files/run-virt.include')
-rw-r--r--src/os-plugins/plugins/emufe/files/run-virt.include12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/os-plugins/plugins/emufe/files/run-virt.include b/src/os-plugins/plugins/emufe/files/run-virt.include
index e3fbfb7f..8e647b12 100644
--- a/src/os-plugins/plugins/emufe/files/run-virt.include
+++ b/src/os-plugins/plugins/emufe/files/run-virt.include
@@ -36,11 +36,11 @@ PLUGINDIRQK=${OPENSLX_DEFAULT_DIR}/plugin-repo/${self}
# create TMPDIR for all users
mkdir -m 1777 /tmp/${self} 2>/dev/null
# TMPDIR
-TMPDIR="/tmp/${self}/${USER}/${VM_ID}"
+TMPDIR="/tmp/${self}/${USER}"
# define dirs and files which can be removed after exit, be carefull!
RMDIRS="${TMPDIR}"
rm -rf ${RMDIRS} 2>/dev/null
-mkdir -m 1777 -p ${QKTMPDIR} 2>/dev/null
+mkdir -m 1777 -p ${TMPDIR} 2>/dev/null
# vmpath is the path to the emulator/original system image
diskfile=${vmpath}
@@ -58,7 +58,13 @@ VIRTCMD="${emulator}"
case "${emulator}" in
dosbox*|Dosbox*)
tar -xpzf ${diskfile} -C "${TMPDIR}"
- VIRTCMDOPTS="${VIRTCMDOPTS} ${TMPDIR}"
+ emudir=$(ls ${TMPDIR})
+ [ $(echo ${filenumber}|wc|awk '{print $2}') -eq 1 ] && \
+ TMPDIR=${TMPDIR}/${emudir}
+ echo "# empty" > ${TMPDIR}/dosbox.conf
+ VIRTCMDOPTS="${emulator#*dosbox}"
+ VIRTCMDOPTS="${VIRTCMDOPTS} -conf ${TMPDIR}/dosbox.conf -fullscreen"
+ VIRTCMD="dosbox"
;;
SheepShaver*|sheepshaver*)
[ "x${rombios}" != "x" ] && rom="-rom ${xmlpath}${rombios}"