feat(main): use d-bus object manager
Signed-off-by: Nova <technobaboo@gmail.com>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user