Modify MAP agent's service file path 92/68892/1
authorDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 10 May 2016 08:00:58 +0000 (17:00 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 10 May 2016 08:00:58 +0000 (17:00 +0900)
When obexd calls map-agent method, dbus auto-activation was failed.
Because of obexd uses a session bus connection.

Change-Id: Ic22b90d6be46ce2a00276f9c24d8f28beebceeb5
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
map-agent/CMakeLists.txt
map-agent/org.bluez.map_agent.service
packaging/bluetooth-agent.spec

index 40b8d72..78c6722 100644 (file)
@@ -21,4 +21,4 @@ TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_map_agent_LDFLAGS})
 
 INSTALL(TARGETS ${PROJECT_NAME} DESTINATION bin)
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/org.bluez.map_agent.service
-               DESTINATION share/dbus-1/system-services)
+               DESTINATION share/dbus-1/services)
index 3a5a867..bee56cc 100644 (file)
@@ -1,3 +1,5 @@
 [D-BUS Service]
 Name=org.bluez.map_agent
 Exec=/usr/bin/bluetooth-map-agent
+User=network_fw
+Group=network_fw
index 286122a..4eb6285 100644 (file)
@@ -112,7 +112,7 @@ ln -sf %{_libdir}/systemd/user/bluetooth-map-agent.service %{_sysconfdir}/system
 %{_bindir}/bluetooth-map-agent
 %{_bindir}/bluetooth-pb-agent
 %{_datadir}/dbus-1/system-services/org.bluez.pb_agent.service
-%{_datadir}/dbus-1/system-services/org.bluez.map_agent.service
+%{_datadir}/dbus-1/services/org.bluez.map_agent.service
 %{_datadir}/dbus-1/system-services/org.bluez.ag_agent.service
 #%{_usrlibdir}/systemd/system/bluetooth-ag-agent.service
 #%{_usrlibdir}/systemd/system/multi-user.target.wants/bluetooth-ag-agent.service