Fix that bt-serivce can't find DBUS_SESSION_BUS_ADDRESS 33/11933/3
authorWu zheng <wu.zheng@intel.com>
Mon, 11 Nov 2013 03:23:06 +0000 (11:23 +0800)
committerWu zheng <wu.zheng@intel.com>
Mon, 11 Nov 2013 03:23:06 +0000 (11:23 +0800)
Add the related env param when bt-service start.

The param still is needed.

After then, the bug can be fixed.

Change-Id: I5f05df3dc73c3683ddf735f6d813e9409eddd0de

bt-service/org.projectx.bt.service

index 9f4ea8f..bc73483 100644 (file)
@@ -1,4 +1,4 @@
 [D-BUS Service]
 Name=org.projectx.bt
-Exec=/usr/bin/bt-service
+Exec=/bin/sh -c 'export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$UID/dbus/user_bus_socket; exec /usr/bin/bt-service'
 User=app