Bluetooth-Service/Spec: Add dbus service file 87/18287/1
authorWu Jiangbo <jiangbox.wu@intel.com>
Tue, 18 Mar 2014 09:24:38 +0000 (17:24 +0800)
committerWu Jiangbo <jiangbox.wu@intel.com>
Thu, 20 Mar 2014 06:43:42 +0000 (14:43 +0800)
Change-Id: I8cae80323be6c3b9d953b67d5cb5eab5f81e2abe
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
CMakeLists.txt
packaging/bluetooth-frwk.spec
packaging/org.tizen.comms.service [new file with mode: 0644]

index 08adc44..c841e6b 100644 (file)
@@ -69,6 +69,8 @@ INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/packaging/bluezobex.conf
                                        DESTINATION /etc/dbus-1/system.d)
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/packaging/bluetooth-service.conf
                                        DESTINATION /etc/dbus-1/system.d)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/packaging/org.tizen.comms.service
+                                       DESTINATION share/dbus-1/system-services)
 
 # BLUEZ-TEST
 SET(BLUEZ-TEST "bluez-lib-test")
index b9525e9..9908b59 100644 (file)
@@ -64,6 +64,7 @@ make %{?jobs:-j%jobs}
 %config %{_sysconfdir}/dbus-1/system.d/bluezlib.conf
 %config %{_sysconfdir}/dbus-1/system.d/bluezobex.conf
 %config %{_sysconfdir}/dbus-1/system.d/bluetooth-service.conf
+%{_datadir}/dbus-1/system-services/org.tizen.comms.service
 
 %files test
 %manifest %{name}.manifest
diff --git a/packaging/org.tizen.comms.service b/packaging/org.tizen.comms.service
new file mode 100644 (file)
index 0000000..9557a51
--- /dev/null
@@ -0,0 +1,4 @@
+[D-BUS Service]
+Name=org.tizen.comms
+Exec=/bin/sh -c 'export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$UID/dbus/user_bus_socket; exec /bin/bluetooth-service'
+User=app