if (map_dbus_conn)
return map_dbus_conn;
- map_dbus_conn = g_bus_get_sync(G_BUS_TYPE_SESSION, NULL, &err);
+ map_dbus_conn = g_bus_get_sync(G_BUS_TYPE_SYSTEM, NULL, &err);
if (!map_dbus_conn) {
if (err) {
ERR("Unable to connect to dbus: %s", err->message);
return FALSE;
}
- owner_id = g_bus_own_name(G_BUS_TYPE_SESSION,
+ owner_id = g_bus_own_name(G_BUS_TYPE_SYSTEM,
BT_MAP_SERVICE_NAME,
G_BUS_NAME_OWNER_FLAGS_NONE,
NULL, NULL, NULL,
popd
%endif
-install -D -m 0644 packaging/bluetooth-map-agent.service %{buildroot}%{_libdir}/systemd/user/bluetooth-map-agent.service
+install -D -m 0644 packaging/bluetooth-map-agent.service %{buildroot}%{_libdir}/systemd/system/bluetooth-map-agent.service
# This usage of profile macro does NOT conflict 4.0 configurability.
%if "%{?profile}" != "mobile" && "%{?profile}" != "tv"
# Original: wearable, ivi. Added: common, "undefined"
%license LICENSE
%{_bindir}/bluetooth-hf-agent
%{_datadir}/dbus-1/system-services/org.bluez.hf_agent.service
-%exclude %{_libdir}/systemd/user/bluetooth-map-agent.service
+%exclude %{_libdir}/systemd/system/bluetooth-map-agent.service
%exclude %{_libdir}/systemd/system/bluetooth-pbap-agent.service
%files profile_ivi
%license LICENSE
%{_bindir}/bluetooth-hf-agent.ivi
%{_datadir}/dbus-1/system-services/org.bluez.hf_agent.service
-%exclude %{_libdir}/systemd/user/bluetooth-map-agent.service
+%exclude %{_libdir}/systemd/system/bluetooth-map-agent.service
%exclude %{_libdir}/systemd/system/bluetooth-pbap-agent.service
%endif
%{_bindir}/bluetooth-map-agent
%{_bindir}/bluetooth-pb-agent
%{_datadir}/dbus-1/system-services/org.bluez.pb_agent.service
-%{_datadir}/dbus-1/services/org.bluez.map_agent.service
+%{_datadir}/dbus-1/system-services/org.bluez.map_agent.service
%{_datadir}/dbus-1/system-services/org.bluez.ag_agent.service
%attr(0666,-,-) /var/lib/bluetooth/voice-recognition-blacklist
%{_sysconfdir}/dbus-1/system.d/bluetooth-ag-agent.conf
-%{_libdir}/systemd/user/bluetooth-map-agent.service
+%{_libdir}/systemd/system/bluetooth-map-agent.service
%{_libdir}/systemd/system/bluetooth-pbap-agent.service
%endif