From a52060315e1c2b694ffa147f869cd856306c46e0 Mon Sep 17 00:00:00 2001 From: akbash Date: Thu, 10 Sep 2026 13:46:15 +0300 Subject: fix(linux): identify Herdr desktop notifications (#3639) refs #3638 Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com> --- src/platform/linux.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/platform') diff --git a/src/platform/linux.rs b/src/platform/linux.rs index 6c09667a..ac0645c1 100644 --- a/src/platform/linux.rs +++ b/src/platform/linux.rs @@ -577,7 +577,7 @@ fn show_desktop_notification_with_command( } let mut cmd = command("notify-send"); - cmd.arg("--").arg(title); + cmd.arg("--app-name").arg("Herdr").arg("--").arg(title); if let Some(body) = body.filter(|body| !body.is_empty()) { cmd.arg(body); } @@ -1569,7 +1569,7 @@ mod tests { } #[test] - fn desktop_notification_separates_option_like_titles() { + fn desktop_notification_sets_app_name_and_separates_option_like_titles() { let _guard = env_lock().lock().unwrap(); unsafe { std::env::remove_var("WAYLAND_DISPLAY"); @@ -1592,7 +1592,7 @@ mod tests { assert!(shown); let args = std::fs::read_to_string(&path).expect("args file"); let _ = std::fs::remove_file(&path); - assert_eq!(args, "--\n-danger\nbody\n"); + assert_eq!(args, "--app-name\nHerdr\n--\n-danger\nbody\n"); } #[test] -- cgit v1.2.3