From eed01dd3609e90e3c8cd043656734c500956c793 Mon Sep 17 00:00:00 2001 From: Steven Ceuppens Date: Mon, 1 Jun 2026 23:06:43 -0600 Subject: [PATCH 1/2] fix(bluez): forward display_passkey, display_pin_code, and request_authorization agent messages These three Agent1 D-Bus methods were stubs that returned Ok(()) without forwarding events through the message channel. This prevented consumers from receiving passkey/PIN display requests during Bluetooth keyboard pairing. Now all three methods send their respective Message variants through the channel, matching the existing pattern used by request_confirmation, request_passkey, and request_pin_code. --- bluez/src/agent1.rs | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/bluez/src/agent1.rs b/bluez/src/agent1.rs index de5b4e4..f3ddb2b 100644 --- a/bluez/src/agent1.rs +++ b/bluez/src/agent1.rs @@ -122,6 +122,15 @@ impl Agent { ) -> zbus::fdo::Result<()> { tracing::debug!(?device, passkey, entered, "display_passkey"); + _ = self + .message_sender + .send(Message::DisplayPasskey { + device, + passkey, + entered, + }) + .await; + Ok(()) } @@ -150,6 +159,14 @@ impl Agent { ) -> zbus::fdo::Result<()> { tracing::debug!(?device, pin_code, "display_pin_code"); + _ = self + .message_sender + .send(Message::DisplayPinCode { + device, + pincode: pin_code, + }) + .await; + Ok(()) } @@ -173,7 +190,18 @@ impl Agent { async fn request_authorization(&mut self, device: OwnedObjectPath) -> zbus::fdo::Result<()> { tracing::debug!(?device, "request_authorization"); - Ok(()) + let (response, response_rx) = oneshot::channel::(); + + _ = self + .message_sender + .send(Message::RequestAuthorization { device, response }) + .await; + + match response_rx.await { + Ok(true) => Ok(()), + Ok(false) => Err(zbus::fdo::Error::Failed("cancelled".to_string())), + Err(why) => Err(zbus::fdo::Error::Failed(why.to_string())), + } } /// This method gets called when the service daemon From 05907e16e807a8669e7607921e76148598e1eeb7 Mon Sep 17 00:00:00 2001 From: Lionel DARNIS Date: Mon, 25 May 2026 09:55:11 +0200 Subject: [PATCH 2/2] yoda: disambiguate settings daemon binding crate --- cosmic-settings-daemon/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cosmic-settings-daemon/Cargo.toml b/cosmic-settings-daemon/Cargo.toml index dd88d34..b0cfa6c 100644 --- a/cosmic-settings-daemon/Cargo.toml +++ b/cosmic-settings-daemon/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cosmic-settings-daemon" -version = "0.1.0" +version = "0.1.1-yoda.1" edition = "2024" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html