LogoSailfishOS Open Build Service > Projects
Log In

View File amiberry_wrapper.sh of Package amiberry (Project home:nephros:devel:games:amiga)

#!/bin/sh
CONFDIR=${XDG_CONFIG_HOME:-${HOME}/.config}/amiberry
DATADIR=${XDG_DATA_HOME:-${HOME}/.local/share}/amiberry
export CONFDIR
export DATADIR
mkdir -p ${CONFDIR}/conf >/dev/null
mkdir -p ${DATADIR} >/dev/null
/usr/share/amiberry/amiberry \
	-o rotation_angle=270 \
	-o default_line_mode=1 \
	-o default_fullscreen_mode=2 \
	-o write_logfile=yes \
	-o logfile_path=/run/activeuser/amiberry.log  \
	-o path=${DATADIR} \
	-o config_path=${CONFDIR}/conf/ \
	-o rom_path=${DATADIR}/kickstarts/ \
	-o data_dir=/usr/share/amiberry/data/ \
	-o screenshot_dir=${XDG_PICTURES_DIR:-=$HOME/Pictures}/amiberry/ \
	-o inputrecordings_dir=${XDG_MUSIC_DIR:-=$HOME/Music}/amiberry/ \
	-G \
	"$@"

if [ $? -ne 0 ] && [ -r /run/activeuser/amiberry.log ]; then
	cat /run/activeuser/amiberry.log
fi

cd -