Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/include/common.global.class.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2350 by niro, Mon Aug 24 10:12:37 2015 UTC revision 2351 by niro, Mon Aug 24 10:27:46 2015 UTC
# Line 149  clearconfig() Line 149  clearconfig()
149  # this wrapper runs a command in the xsession of the unpriv_user  # this wrapper runs a command in the xsession of the unpriv_user
150  x11runas()  x11runas()
151  {  {
152   if [[ -n $(pidof X) ]]   if [[ -n $(pidof X) ]] || [[ -n $(pidof Xorg) ]]
153   then   then
154   su - "${MCORE_UNPRIV_USER}" -c "DISPLAY=${MCORE_XORG_DISPLAY} '$@'"   su - "${MCORE_UNPRIV_USER}" -c "DISPLAY=${MCORE_XORG_DISPLAY} $@"
155   fi   fi
156  }  }
157    

Legend:
Removed from v.2350  
changed lines
  Added in v.2351