bluetooth: backend-native: Handle RegisterProfile failure
requested to merge jprvita/pulseaudio:for-upstream/handle-bluetooth-profile-registration-failure into master
This is how we have been working around #303 in Endless OS for the case where PulseAudio is brought up in the user session before PulseAudio in the GDM session has finished, in which case the later PulseAudio instance fails to register Bluetooth profiles with bluetoothd.
Creating as a draft since this depends on https://lore.kernel.org/linux-bluetooth/20210611020728.15233-1-jprvita@endlessos.org/ on the BlueZ side.
Edited by João Paulo Rechi Vita