user_manager: Start bringing up user manager

This commit is contained in:
Vicki Pfau 2024-04-24 17:04:53 -07:00
parent 65d8ff958e
commit bf521a7bbb
4 changed files with 59 additions and 1 deletions

View file

@ -13,12 +13,18 @@ use zbus::connection::Connection;
use zbus::ConnectionBuilder;
use crate::daemon::Daemon;
use crate::user_manager::SteamOSManagerUser;
async fn create_connection() -> Result<Connection> {
let connection = ConnectionBuilder::session()?
.name("com.steampowered.SteamOSManager1")?
.build()
.await?;
let manager = SteamOSManagerUser::new(connection.clone()).await?;
connection
.object_server()
.at("/com/steampowered/SteamOSManager1/User", manager)
.await?;
Ok(connection)
}