mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-14 10:21:57 -04:00
user_manager: Start bringing up user manager
This commit is contained in:
parent
65d8ff958e
commit
bf521a7bbb
4 changed files with 59 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue