diff --git a/src/main.rs b/src/main.rs index 29b7ee5..dcc22ce 100644 --- a/src/main.rs +++ b/src/main.rs @@ -35,6 +35,7 @@ use tokio::sync::Notify; use tracing::metadata::LevelFilter; use tracing::{debug_span, error, info}; use tracing_subscriber::{fmt, prelude::*, EnvFilter}; +use zbus::fdo::ObjectManager; use zbus::Connection; #[derive(Debug, Clone, Parser)] @@ -127,6 +128,12 @@ async fn main() { .await .expect("Another instance of the server is running. This is not supported currently (but is planned)."); + dbus_connection + .object_server() + .at("/", ObjectManager) + .await + .expect("Couldn't add the object manager"); + let sk_ready_notifier = Arc::new(Notify::new()); let stereokit_loop = tokio::task::spawn_blocking({ let sk_ready_notifier = sk_ready_notifier.clone();