--- mcore-src/trunk/mcore-tools/src/include/common.global.class.in 2014/01/10 23:50:18 2227 +++ mcore-src/trunk/mcore-tools/src/include/common.global.class.in 2015/08/24 10:12:37 2349 @@ -84,6 +84,24 @@ eecho "DEBUG: ${@}" } +# source a file with debug information +include() +{ + local retval + + if [ -f $@ ] + then + decho "including '$@'" + source $@ + retval=$? + else + decho "include: '$@' not found" + retval=1 + fi + + return ${retval} +} + # adds a line to a configuration file defined by the $CONFIG variable # $CONFIG="/etc/conf.d/mcore" addconfig 'LIBDIR="/usr/lib"' addconfig() @@ -133,7 +151,7 @@ { if [[ -n $(pidof X) ]] then - su - "${MCORE_UNPRIV_USER}" -c "DISPLAY=${MCORE_XORG_DISPLAY} $@" + su - "${MCORE_UNPRIV_USER}" -c "DISPLAY=${MCORE_XORG_DISPLAY} '$@'" fi }