Diff of /mcore-src/trunk/mcore-tools/src/include/common.global.class.in
Parent Directory | Revision Log | Patch
revision 2631 by niro, Tue Sep 29 10:34:58 2015 UTC | revision 2632 by niro, Tue Sep 29 10:36:33 2015 UTC | |
---|---|---|
# | Line 150 clearconfig() | Line 150 clearconfig() |
150 | # this wrapper runs a command in the xsession of the unpriv_user | # this wrapper runs a command in the xsession of the unpriv_user |
151 | x11runas() | x11runas() |
152 | { | { |
153 | if [[ -n $(pidof X) ]] || [[ -n $(pidof Xorg) ]] | if [[ -n $(pidof X) ]] || [[ -n $(pidof Xorg) ]] || [[ -n $(pidof Xorg.bin) ]] |
154 | then | then |
155 | su - "${MCORE_UNPRIV_USER}" -c "DISPLAY=${MCORE_XORG_DISPLAY} $@" | su - "${MCORE_UNPRIV_USER}" -c "DISPLAY=${MCORE_XORG_DISPLAY} $@" |
156 | fi | fi |
|