use notify_rust::Notification;

/// This does NOT require the `images` feature
fn main() -> Result<(), Box<dyn std::error::Error>> {
    #[cfg(target_os = "macos")]
    {
        let bundle_id = notify_rust::get_bundle_identifier_or_default("zed");
        notify_rust::set_application(&bundle_id).unwrap();
    }
    Notification::new()
        .summary(".image_path()")
        .body("Trying to open an image")
        .image_path("./examples/octodex.jpg")
        .show()?;

    Ok(())
}
