Skip to content

Add functionality for confirming bluetooth device request #417

@voltyea

Description

@voltyea

The quickshell bluetooth module needs a way to confirm the passkey prompt from the agent, which looks something like this
[agent] Confirm passkey 540242 (yes/no):
When I try to connect my earbuds I get this prompt and even tho it does pair, connect and trust without checking this, it does not save the device for future connections and the bonded property stays false, meaning it will not auto connect next time and you will have to do it manually everytime. Blueman solves this issue by emitting a notification to ask for the confirmation. So maybe quickshell can do something similar since it already uses dbus.
Here are some more error logs
WARN quickshell.bluetooth.device: Failed to pair with device BluetoothDevice(0x7f4bcf5fcc00, path="/org/bluez/hci0/dev_08_12_87_23_5D_E0"): "Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken."

bluetoothctl.txt

[bluetoothctl]> pair 08:12:87:23:5D:E0 Attempting to pair with 08:12:87:23:5D:E0 [CHG] Device 08:12:87:23:5D:E0 Connected: yes Request confirmation [agent] Confirm passkey 626131 (yes/no):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions