#!/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 requires a version of PCem that is patched to accept
#$PCEM_CONFIG_DIR as an alternate configuration directory instead of $HOME/.pcem
#
#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.
#

export PCEM_CONFIG_DIR="."

if [ "$PCEM_NO_AUTO_BOOT" = "1" ]
then
	exec pcem
else
	exec pcem --config configs/default.cfg
fi
