Remove XDG_RUNTIME_DIR variable from /run/tizen-system-env 65/47365/2 tizen_3.0.m1_mobile tizen_3.0.m1_tv accepted/tizen/mobile/20150903.233352 accepted/tizen/tv/20150903.233401 accepted/tizen/wearable/20150903.233414 submit/tizen/20150903.110915 submit/tizen_common/20151023.083358 submit/tizen_common/20151026.085049 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release
authorSangjung Woo <sangjung.woo@samsung.com>
Thu, 3 Sep 2015 00:00:47 +0000 (09:00 +0900)
committerSangjung Woo <sangjung.woo@samsung.com>
Thu, 3 Sep 2015 02:10:05 +0000 (11:10 +0900)
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 <sangjung.woo@samsung.com>
units/tizen-system-env.service

index dc4e188a1c1c162760cdc67de626863dc7967b9c..3130b8c2fb46097f945dbf8210d11d4ccb46e637 100644 (file)
@@ -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