--- mcore-src/trunk/mcore-tools/src/include/common.global.class.in 2015/08/24 10:13:23 2350 +++ mcore-src/trunk/mcore-tools/src/include/common.global.class.in 2015/08/24 10:27:46 2351 @@ -149,9 +149,9 @@ # this wrapper runs a command in the xsession of the unpriv_user x11runas() { - if [[ -n $(pidof X) ]] + if [[ -n $(pidof X) ]] || [[ -n $(pidof Xorg) ]] then - su - "${MCORE_UNPRIV_USER}" -c "DISPLAY=${MCORE_XORG_DISPLAY} '$@'" + su - "${MCORE_UNPRIV_USER}" -c "DISPLAY=${MCORE_XORG_DISPLAY} $@" fi }