clipmem 0.6.0

macOS clipboard memory backed by SQLite and searchable from agent runtimes
Documentation
#[cfg(target_os = "macos")]
pub(in crate::cli) const APP_REFRESH_NOTIFICATION: &str = "io.openclaw.clipmem.revision.changed";

pub(in crate::cli) fn notify_app_refresh() {
    #[cfg(target_os = "macos")]
    {
        if std::env::var_os("CLIPMEM_DISABLE_APP_REFRESH_NOTIFY").is_some() {
            return;
        }
        let Ok(mut child) = std::process::Command::new("/usr/bin/notifyutil")
            .args(["-p", APP_REFRESH_NOTIFICATION])
            .stdin(std::process::Stdio::null())
            .stdout(std::process::Stdio::null())
            .stderr(std::process::Stdio::null())
            .spawn()
        else {
            return;
        };
        let _ = std::thread::spawn(move || {
            let _ = child.wait();
        });
    }
}