summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINSUN PYO <insun.pyo@samsung.com>2017-03-06 16:27:32 +0900
committerINSUN PYO <insun.pyo@samsung.com>2017-03-06 16:28:07 +0900
commit399ef88c2c6e7ca2cb8ce54f98a4ef849ddd3011 (patch)
tree695e5661efc1d8a44ad2c0d9d038c9402bc5e534
parent1925343a523664513432174841effed84059cce1 (diff)
downloaddbus-399ef88c2c6e7ca2cb8ce54f98a4ef849ddd3011.tar.gz
dbus-399ef88c2c6e7ca2cb8ce54f98a4ef849ddd3011.tar.bz2
dbus-399ef88c2c6e7ca2cb8ce54f98a4ef849ddd3011.zip
Signed-off-by: INSUN PYO <insun.pyo@samsung.com> Change-Id: I8809374f28baae65606b679b3ef15fc71a91f98d
-rw-r--r--packaging/dbus.sh15
1 files changed, 8 insertions, 7 deletions
diff --git a/packaging/dbus.sh b/packaging/dbus.sh
index def85861..5f0bf73f 100644
--- a/packaging/dbus.sh
+++ b/packaging/dbus.sh
@@ -2,13 +2,14 @@
# from the first systemd process running for the current user.
# This typically allows a 'su - <user>' command to have the right DBUS address.
-if [[ -z "$DBUS_SESSION_BUS_ADDRESS" ]]; then
- systemd_pid=$(pgrep -U $UID systemd | head -1)
- if [[ -n "$systemd_pid" ]]; then
- val=$(tr '\0' '\n' < /proc/${systemd_pid}/environ | sed '/^DBUS_SESSION_BUS_ADDRESS=/!d ; s/[^=]*=//')
- [[ -n "$val" ]] && export DBUS_SESSION_BUS_ADDRESS=$val
- fi
-fi
+# pgrep doesn't work at tizen 4.0. Replace with the following code.
+# if [[ -z "$DBUS_SESSION_BUS_ADDRESS" ]]; then
+# systemd_pid=$(pgrep -U $UID systemd | head -1)
+# if [[ -n "$systemd_pid" ]]; then
+# val=$(tr '\0' '\n' < /proc/${systemd_pid}/environ | sed '/^DBUS_SESSION_BUS_ADDRESS=/!d ; s/[^=]*=//')
+# [[ -n "$val" ]] && export DBUS_SESSION_BUS_ADDRESS=$val
+# fi
+# fi
# The adbd's privilege has been changed form "System::Privileged" to "User::Shell".