diff --git a/src/main.rs b/src/main.rs index b174345..dd50f33 100644 --- a/src/main.rs +++ b/src/main.rs @@ -6,6 +6,7 @@ use std::thread; use anyhow::Result; use clap::Parser; +use sd_notify::NotifyState; use serde_json::{Map, Value}; use url_escape; @@ -98,6 +99,8 @@ fn main() -> Result<()> { fs::write(&output_path, output) .expect(format!("To be able to write to '{}'", output_path.to_string_lossy()).as_str()); + sd_notify::notify(true, &[NotifyState::Ready])?; + if idle { loop { thread::park();