In Tizen 3.0, dbus will running with an unprivileged user 'dbus' and use
an setuid servicehelper to activate system service, which should be
installed into the system-service directory if it provides system wide
service, and "User=" field is must to have to servicehelper.
Bug: https://bugs.tizen.org/jira/browse/PTREL-124
Change-Id: I954c38e3340b9a77c2776938380641023bcbab55
Signed-off-by: Chengwei Yang <chengwei.yang@intel.com>
INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${BINDIR})
INSTALL(FILES ${CMAKE_SOURCE_DIR}/bluetooth-share.rule DESTINATION /opt/etc/smack/accesses.d)
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/org.bluetooth.share.service DESTINATION share/dbus-1/services)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/org.bluetooth.share.service DESTINATION share/dbus-1/system-services)
[D-BUS Service]
Name=org.bluetooth.share
Exec=/usr/bin/bluetooth-share
+User=root
/opt/etc/smack/accesses.d/bluetooth-share.rule
%defattr(-,root,root,-)
%{_bindir}/bluetooth-share
-%{_datadir}/dbus-1/services/org.bluetooth.share.service
+%{_datadir}/dbus-1/system-services/org.bluetooth.share.service
%{_optdir}/share/bt-ftp
%files -n libbluetooth-share