summarylogtreecommitdiffstats
path: root/run-qfg2.sh
blob: 1be28ad0d43d3a21bc0de2438bc7d853be8165e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
set -e
homedir="$HOME/.local/share/gog/qfg"
gogdir="/opt/gog/qfg2"
rundir="$XDG_RUNTIME_DIR/gog/qfg2"
mkdir -p "$homedir"
mkdir -p "$rundir"
/usr/bin/unionfs "$homedir=RW:$gogdir=RO" "$rundir"
cd "$rundir"
/usr/bin/dosbox -conf "$gogdir/dosboxQG2.conf" -conf "$gogdir/run-qfg2.conf"
cd "$gogdir"
/usr/bin/fusermount -u "$rundir"