Commit: df0036d9e41fc4bb0fe8839b7833bac16359396b
Parent: 883c1c11c6448e7f0ca04e523a5ac2030d7f161c
Author: Andrew Sayers <kernel.org@pileofstuff.org>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2025-06-11 17:39:31
Tree: 96017ac3d8abe824c64aa1edacf182580ad4c5da

pbap: use the public DBus connection PBAP must not use its own private DBus connection, as it needs to receive messages sent to the bus name of the public connection. PBAP must not unregister itself when the program is exiting, as it might cause a long delay. Unregistering at exit is redundant anyway, as the service will be implicitly unregistered when the connection is closed. But PBAP must unregister itself when the user becomes inactive mid-session, so systems with multiple users logged in at once can share bluetooth. Use the public DBus connection instead of a private one, and explicitly unregister the profile if appropriate. Thanks Pauli Virtanen for pointing out the exit issue: https://lore.kernel.org/linux-bluetooth/ae15a9fa4bf0bd509dd3d44f1f364e241e50956c.camel@iki.fi/ Reported-by: Frédéric Danis <frederic.danis@collabora.com> Closes: https://lore.kernel.org/linux-bluetooth/333ad76e-0aba-4f93-b141-8e69fb47535f@collabora.com/ Suggested-by: Pauli Virtanen <pav@iki.fi>

Diffstat

M obexd/client/pbap.c | 24 +++++++++++++++++++++- - -

1 files changed, 21 insertions(+), 3 deletions(-)

View Full Diff | Patch