diff options
author | INSUN PYO <insun.pyo@samsung.com> | 2017-03-06 16:27:32 +0900 |
---|---|---|
committer | INSUN PYO <insun.pyo@samsung.com> | 2017-03-06 16:28:07 +0900 |
commit | 399ef88c2c6e7ca2cb8ce54f98a4ef849ddd3011 (patch) | |
tree | 695e5661efc1d8a44ad2c0d9d038c9402bc5e534 | |
parent | 1925343a523664513432174841effed84059cce1 (diff) | |
download | dbus-399ef88c2c6e7ca2cb8ce54f98a4ef849ddd3011.tar.gz dbus-399ef88c2c6e7ca2cb8ce54f98a4ef849ddd3011.tar.bz2 dbus-399ef88c2c6e7ca2cb8ce54f98a4ef849ddd3011.zip |
Remove unused code (Don't use pgrep)submit/tizen_unified/20170308.100411submit/tizen/20170306.075427accepted/tizen/wearable/20170306.222650accepted/tizen/unified/20170309.035205accepted/tizen/tv/20170306.222625accepted/tizen/mobile/20170306.222608accepted/tizen/ivi/20170306.222710accepted/tizen/common/20170306.165254
Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: I8809374f28baae65606b679b3ef15fc71a91f98d
-rw-r--r-- | packaging/dbus.sh | 15 |
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". |