1 2 3 4 5 6 7
use crate::Result; pub fn notify(title: &str, msg: &str) -> Result<()> { std::process::Command::new("notify-send") .args(["-t", "10000", title, msg]) .spawn()?; Ok(()) }