#!/bin/bash MCORE_LIBDIR="@@MCORE_LIBDIR@@" source @@SYSCONFDIR@@/mcore/mcore.conf source ${MCORE_LIBDIR}/include/common.global.class if [ ! -d ${MROOT}/${MCORE_CONFIG_PATH}/fluxbox/autostart ] then echo "'${MROOT}/${MCORE_CONFIG_PATH}/fluxbox/autostart' does not exist." exit 1 fi CONFIG="${MROOT}/${MCORE_UNPRIV_HOME}/.fluxbox/apps" if [ ! -d ${MROOT}/${MCORE_UNPRIV_HOME}/@@FLUXBOX_USER_CONFIG_DIR@@ ] then install -o ${MCORE_UNPRIV_USER} -g ${MCORE_UNPRIV_GROUP} -d ${MROOT}/${MCORE_UNPRIV_HOME}/@@FLUXBOX_USER_CONFIG_DIR@@ fi clearconfig # use global fluxbox apps file as default if [ -f ${MROOT}/@@FLUXBOX_SHARED_DIR@@/apps ] then addconfig "$(< ${MROOT}/@@FLUXBOX_SHARED_DIR@@/apps)" fi for file in $(find ${MROOT}/${MCORE_CONFIG_PATH}/fluxbox/autostart -type f | sort) do addconfig "$(< ${file})" done # add a newline (maybe there is no crlf in the footer) addconfig