* /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>
[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