From 7d0cc569b7de72e4c6505362ba9b695d10b10056 Mon Sep 17 00:00:00 2001 From: Alexander Mohr Date: Mon, 2 Jun 2025 08:43:57 +0200 Subject: [PATCH] make ydotoold optional --- examples/worf-warden/src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/worf-warden/src/main.rs b/examples/worf-warden/src/main.rs index 8646f7e..623474f 100644 --- a/examples/worf-warden/src/main.rs +++ b/examples/worf-warden/src/main.rs @@ -354,7 +354,9 @@ fn main() -> Result<(), String> { } // will exit if there is a daemon running already, so it's fine to call this everytime. - spawn_fork("ydotoold", None).expect("failed to spawn ydotoold"); + if let Err(e) = spawn_fork("ydotoold", None) { + log::error!("Failed to start ydotool daemon: {e}"); + } // todo eventually use a propper rust client for this, for now rbw is good enough let provider = PasswordProvider::new(&config)?;