From: Sangjung Woo Date: Thu, 3 Sep 2015 00:00:47 +0000 (+0900) Subject: Remove XDG_RUNTIME_DIR variable from /run/tizen-system-env X-Git-Tag: submit/tizen/20150903.110915^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_3.0.m1_mobile;p=platform%2Fadaptation%2Fsystem-plugin.git Remove XDG_RUNTIME_DIR variable from /run/tizen-system-env XDG_RUNTIME_DIR variable could be changed in multi user environment so its fixed value should be removed. Even though some special processes such as boot-animation runs in system session, but XDG_RUNTIME_DIR variable is required since they has its own UI. So /run/xdg-root-env file is created for this purpose. Change-Id: I0b31b04d05a1f9aff1da5bd7a59651023137d054 Signed-off-by: Sangjung Woo --- diff --git a/units/tizen-system-env.service b/units/tizen-system-env.service index dc4e188..3130b8c 100644 --- a/units/tizen-system-env.service +++ b/units/tizen-system-env.service @@ -5,7 +5,8 @@ Before=basic.target [Service] Type=oneshot -ExecStart=/usr/bin/env -i sh -c 'source /etc/profile; env | /bin/egrep -v "^(HOME|PWD|SHLVL|_|USER|MAIL|LOGNAME)=" > /run/tizen-system-env' +ExecStart=/usr/bin/env -i sh -c 'source /etc/profile; env | /bin/egrep -v "^(HOME|PWD|SHLVL|_|USER|MAIL|LOGNAME|XDG_RUNTIME_DIR)=" > /run/tizen-system-env' +ExecStart=/usr/bin/env -i sh -c 'source /etc/profile; env | /bin/egrep -e "XDG_RUNTIME_DIR=" > /run/xdg-root-env' [Install] WantedBy=basic.target