Skip to content

Error when run demo code on mac os #289

Description

@goldli

Mac 12.7.6
rustover 2026.2
rust 1.97.1

Cargo.toml

notify-rust = "4.18.0"

code

use notify_rust::{Notification, Hint};

fn simple_desktop_notify() {
    Notification::new()
        .summary("Firefox News")
        .body("This will almost look like a real firefox notification.")
        .icon("firefox")
        .timeout(5000)
        .show()
        .expect("Could not show notification");
}

fn persistent_desktop_notify() {
    Notification::new()
        .summary("Category:email")
        .body("This has nothing to do with emails.\nIt should not go away until you acknowledge it.")
        .icon("thunderbird")
        .appname("thunderbird")
        //------- hint ------- not support mac
        // .hint(Hint::Category("email".to_owned()))
        // .hint(Hint::Resident(true)) // this is not supported by all implementations
        .timeout(0) // this however is
        .show()
        .expect("Could not show notification");
}

error

2026-08-09 13:28:03.752265+0800 rust_test_to_learning[90642:4709232] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=90642
2026-08-09 13:28:03.752375+0800 rust_test_to_learning[90642:4709232] SecTaskCopyDebugDescription: rust_test_to_lea[90642]/0#-1 LF=0

hot to fix it ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions