Skip to content

Conversation

@muhammad23012009
Copy link

No description provided.

muhammad23012009 and others added 3 commits June 23, 2025 23:56
Co-authored-by: Robert Tari <[email protected]>
Signed-off-by: Muhammad Asif <[email protected]>
* Passkey/PIN display is slightly wonky right now, BlueZ doesn't call
  the Cancel() method once pairing is done, so you have to swipe away
the notification manually. But apart from that, everything else works.

Signed-off-by: Muhammad <[email protected]>

public void RequestConfirmation (GLib.ObjectPath object, uint32 passkey) throws RejectedError, GLib.DBusError, GLib.IOError
{
string body = "Are you sure you want to pair with passkey %06u?".printf (passkey);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To avoid confusion with web passkeys, I think we should call both options "PIN" given that's how it's generally referred to

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, will do that.

}

if (have_actions) {
loop.run ();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not too familiar with vala, won't this block? This could quickly turn into an unintended DoS - imo we should make sure this can concurrently process/reject other requests to avoid that

Comment on lines +105 to +107
public void AuthorizeService (GLib.ObjectPath object, string uuid) throws GLib.DBusError, GLib.IOError
{
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As it is, the (background) agent will now authorize any connection request from the other device, negating Bluez' "trusted" flag ("Connect automatically when detected" in lomiri-system-settings). Is that intended?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants