fuck it forgot to commit all those changes
This commit is contained in:
17 files changed
+2007
-111
No files matched your search
@@ -0,0 +1,19 @@
|
||||
use log::info;
|
||||
use std::error::Error;
|
||||
use zbus::connection::Builder;
|
||||
|
||||
mod dbus_iface;
|
||||
|
||||
pub async fn run() -> Result<(), Box<dyn Error>> {
|
||||
info!("Starting lapctld daemon...");
|
||||
let _connection = Builder::system()?
|
||||
.name("org.lapctl")?
|
||||
.serve_at("/org/lapctl", dbus_iface::LapctlInterface::default())?
|
||||
.build()
|
||||
.await?;
|
||||
|
||||
info!("Daemon is running on the system bus.");
|
||||
loop {
|
||||
tokio::time::sleep(std::time::Duration::from_secs(3600)).await;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user