Remove XDG_RUNTIME_DIR variable from /run/tizen-system-env 01/48501/1 accepted/tizen/mobile/20150925.012642 accepted/tizen/tv/20150925.012656 accepted/tizen/wearable/20150925.012702 submit/tizen/20150924.075354
authorSangjung Woo <sangjung.woo@samsung.com>
Tue, 22 Sep 2015 06:31:43 +0000 (15:31 +0900)
committerSangjung Woo <sangjung.woo@samsung.com>
Tue, 22 Sep 2015 06:31:43 +0000 (15:31 +0900)
* /run/tizen-mobile-env is renamed to /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
is created for this purpose.

Change-Id: I216124bf0110b7b435f91af6086ae56330acc2ef
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
filesystem/usr/lib/systemd/system/tizen-generate-env.service

index 7e860a5..2ffaf12 100644 (file)
@@ -6,7 +6,8 @@ Before=basic.target
 
 [Service]
 Type=oneshot
-ExecStart=/usr/bin/env -i sh -c 'source /etc/profile; env | egrep -v "^(HOME|PWD|SHLVL|_)=" > /run/tizen-mobile-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