From 976edeba72048b876c3ff7241e5fcb51d96d9a79 Mon Sep 17 00:00:00 2001 From: Sangjung Woo Date: Tue, 22 Sep 2015 15:31:43 +0900 Subject: [PATCH] Remove XDG_RUNTIME_DIR variable from /run/tizen-system-env * /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 --- filesystem/usr/lib/systemd/system/tizen-generate-env.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/filesystem/usr/lib/systemd/system/tizen-generate-env.service b/filesystem/usr/lib/systemd/system/tizen-generate-env.service index 7e860a5..2ffaf12 100644 --- a/filesystem/usr/lib/systemd/system/tizen-generate-env.service +++ b/filesystem/usr/lib/systemd/system/tizen-generate-env.service @@ -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 -- 2.34.1