make ydotoold optional

This commit is contained in:
Alexander Mohr 2025-06-02 08:43:57 +02:00
parent bf951bf0c8
commit 7d0cc569b7

View file

@ -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)?;