Remove hardcoded path for multiuser support
[platform/core/connectivity/bluetooth-frwk.git] / bt-service / bluetooth-frwk-service
1 #!/bin/sh
2
3 #
4 # Script for running BT Service during booting time
5 #
6 source /etc/tizen-platform.conf
7
8 if [ -x /usr/bin/bt-service ]; then
9         if [ -d /sys/fs/cgroup/systemd ]; then
10                 export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/${TZ_USER_NAME}/dbus/user_bus_socket;
11         fi
12
13         /usr/bin/bt-service &
14 fi