Diff of /mcore-src/trunk/mcore-tools/src/include/daemon.global.class.in
Parent Directory | Revision Log | Patch
revision 1639 by niro, Thu Mar 10 18:08:47 2011 UTC | revision 1666 by niro, Fri Mar 11 19:38:10 2011 UTC | |
---|---|---|
# | Line 86 help_topics() | Line 86 help_topics() |
86 | # on newer xorg-servers root is not allowed to run progs in a user session | # on newer xorg-servers root is not allowed to run progs in a user session |
87 | x11runas() | x11runas() |
88 | { | { |
89 | if pidof X | if [[ -n $(pidof X) ]] |
90 | then | then |
91 | su - "${MCORE_UNPRIV_USER}" -c "DISPLAY=${MCORE_XORG_DISPLAY} $@" | su - "${MCORE_UNPRIV_USER}" -c "DISPLAY=${MCORE_XORG_DISPLAY} $@" |
92 | fi | fi |
|