--- mcore-src/trunk/mcore-tools/daemon/include/daemon.global.class 2011/03/10 18:08:47 1639 +++ mcore-src/trunk/mcore-tools/daemon/include/daemon.global.class 2011/03/11 19:38:10 1666 @@ -86,7 +86,7 @@ # on newer xorg-servers root is not allowed to run progs in a user session x11runas() { - if pidof X + if [[ -n $(pidof X) ]] then su - "${MCORE_UNPRIV_USER}" -c "DISPLAY=${MCORE_XORG_DISPLAY} $@" fi