blueman icon indicating copy to clipboard operation
blueman copied to clipboard

Improve the notification error message for a failed connect

Open birdie-github opened this issue 3 years ago • 4 comments

blueman: blueman-2.2.5-1.fc36.x86_64 BlueZ: bluez-5.65-1.fc36.x86_64 Distribution: Fedora 36 Desktop environment: XFCE

When trying to manually connect to a known BT device this message is shown which is not human readable. Maybe you could show something more comprehensible.

Thanks!

error

birdie-github avatar Aug 01 '22 22:08 birdie-github

@cschramm

Error messages in ManagerDeviceMenu.py are not exactly human readable and kinda misleading as well. :(

E.g. "Host is down", "br-connection-page-timeout"? What's the "host"? Is it my laptop? Is it its Bluetooth adapter? Is it the device I'm trying to connect to?

Also, to me it makes sense to show a human readable code as well as a low level original code, so that it would be easier to track it down because it actually comes from https://github.com/bluez/bluez

So, it would be great if you showed something like:

Failed to connect br-connection-page-timeout: Timeout initiating a connection with the remote device br-connection-profile-unavailable: The remote device does not support the selected protocol

Maybe these messages should be reported to upstream instead considering your merge request, dunno.

birdie-github avatar Aug 20 '22 14:08 birdie-github

Not sure what you mean. Where do you get to see Host is down?

cschramm avatar Aug 21 '22 08:08 cschramm

Not sure what you mean. Where do you get to see Host is down?

https://github.com/cschramm/blueman/commit/f72c0cbbbdce1172fbf8b28df30ae677779b2d62

birdie-github avatar Aug 21 '22 09:08 birdie-github

That's the code where we catch the bluetoothd / libc error message. The message we show in the UI for it is Device did not respond.

cschramm avatar Aug 21 '22 12:08 cschramm

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Oct 21 '22 00:10 github-actions[bot]