#!/bin/bash
### BEGIN BOOT SCRIPT INFO
#Long-Name: PCem
#Short-Name: pcem
### END BOOT SCRIPT INFO
### BEGIN BOOT SCRIPT INSTALLATION DEFAULTS
#Launch-Mode: gui-only
### END BOOT SCRIPT INSTALLATION DEFAULTS
#
#This script expects a single PCem configuration in configs/default.cfg and
#auto-boots by default. To bring up the launcher menu in order to modify the
#configuration, export PCEM_NO_AUTO_BOOT=1 before running the boot script.
#

. bootscriptfunctions.sh

cd_to_wine_config pcem

if [ "$PCEM_NO_AUTO_BOOT" = "1" ]
then
	exec wine pcem.exe
else
	exec wine pcem.exe --config 'c:\pcem\configs\default.cfg'
fi
