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