Subject: Re: bug#32166: GNOME Settings panel for Bluetooth dysfunctional

From: Ben Sturmfels <[email-masked]>
Date: Mon, 04 Nov 2019 13:45:54 +1100

On Mon, 23 Jul 2018, Ludovic Courtès wrote:

> Taylan Kammer <[email-masked]> skribis:
>
>> I've got Bluetooth running by adding (bluetooth-service) to my list of
>> services and connecting my devices via 'bluetoothctl', which are now
>> fully functional, yet the GNOME Settings panel for Bluetooth still says
>> it couldn't find Bluetooth and asks me to insert a Bluetooth dongle.
>
> Wild guess: could it be that we’re missing a .service D-Bus file or a
> polkit file for whatever deals with Bluetooth in GNOME?  Does the
> Settings panel or D-Bus or polkit leave any messages?

When I install bluetooth-service and click the "Bluetooth" item in GNOME
settings, the following lines are added to /var/log/messages:

Nov  4 13:39:29 localhost dbus-daemon[471]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.126" (uid=1000 pid=1976 comm="/gnu/store/9imb9ffn8rkrp0bijlcxnvx496wl510n-gnome-") interface="org.freedesktop.DBus.ObjectManager" member="GetManagedObjects" error name="(unset)" requested_reply="0" destination=":1.139" (uid=0 pid=2886 comm="/gnu/store/052b2lxw9d4qypr8gsv71f0zn8qljvax-bluez-")
Nov  4 13:39:29 localhost dbus-daemon[471]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.126" (uid=1000 pid=1976 comm="/gnu/store/9imb9ffn8rkrp0bijlcxnvx496wl510n-gnome-") interface="org.bluez.AgentManager1" member="RegisterAgent" error name="(unset)" requested_reply="0" destination=":1.139" (uid=0 pid=2886 comm="/gnu/store/052b2lxw9d4qypr8gsv71f0zn8qljvax-bluez-")

On a side note, given that Bluetooth is listed in GNOME settings, perhaps
bluetooth-service should also be added to %desktop-services? It's
included by default in Trisquel.

Regards,
Ben