git.lucas.co / cce-authenticator
login authentication (PAM + fingerprint)
git clone https://git.lucas.co/cce-authenticator.git

commit85e78c6848c5cf6dca37096877a22c96293f7d93
parent10a4e975b1
authorLucas Galante <[email protected]>
date2026-06-07 22:06
Fix D-Bus object path type signature for RegisterAuthenticationAgent

 src/main.rs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main.rs b/src/main.rs
index 5db7846..f087d38 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -860,7 +860,7 @@ async fn run_polkit_agent_daemon(tx_gui_req: std::sync::mpsc::Sender<GuiRequest>
         "unix-session".to_string(),
         details,
     );
-    let object_path = zbus::zvariant::ObjectPath::try_from("/org/cce/AuthenticatorAgent")?;
+        let object_path = zbus::zvariant::ObjectPath::try_from("/org/cce/AuthenticatorAgent")?;
     
     println!("Registering CCE Authenticator agent for session {}", session_id);
     connection.call_method(
@@ -868,7 +868,7 @@ async fn run_polkit_agent_daemon(tx_gui_req: std::sync::mpsc::Sender<GuiRequest>
         "/org/freedesktop/PolicyKit1/Authority",
         Some("org.freedesktop.PolicyKit1.Authority"),
         "RegisterAuthenticationAgent",
-        &(subject.clone(), "en_US.UTF-8", object_path.clone()),
+        &(subject.clone(), "en_US.UTF-8", object_path.as_str()),
     ).await?;
     
     #[cfg(unix)]
@@ -891,7 +891,7 @@ async fn run_polkit_agent_daemon(tx_gui_req: std::sync::mpsc::Sender<GuiRequest>
         "/org/freedesktop/PolicyKit1/Authority",
         Some("org.freedesktop.PolicyKit1.Authority"),
         "UnregisterAuthenticationAgent",
-        &(subject, object_path),
+        &(subject, object_path.as_str()),
     ).await;
     
     Ok(())