Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions server/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ use crate::{
session::Session,
};

const DEFAULT_COLLECTION_ALIAS_PATH: ObjectPath<'static> =
ObjectPath::from_static_str_unchecked("/org/freedesktop/secrets/aliases/default");

#[derive(Debug, Clone)]
pub struct Service {
// Properties
Expand Down Expand Up @@ -319,7 +322,7 @@ impl Service {

if let Some(secret) = secret {
let collection = Collection::new(
"login",
"Login",
oo7::dbus::Service::DEFAULT_COLLECTION,
false,
service.clone(),
Expand All @@ -328,7 +331,10 @@ impl Service {
collections.push(collection.clone());
collection.dispatch_items().await?;
object_server
.at(collection.path().clone(), collection)
.at(collection.path(), collection.clone())
.await?;
object_server
.at(DEFAULT_COLLECTION_ALIAS_PATH, collection)
.await?;
}

Expand Down