From 235e448defd8271739804d9b005ffee9c149dd8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Didrik=20Nordstr=C3=B6m?= Date: Thu, 9 Jun 2022 12:42:07 -0700 Subject: [PATCH] fix: add a default icon to notifications on linux (#4283) --- .changes/linux-notification-icon.md | 5 +++++ core/tauri/src/api/notification.rs | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changes/linux-notification-icon.md diff --git a/.changes/linux-notification-icon.md b/.changes/linux-notification-icon.md new file mode 100644 index 000000000..6c227934a --- /dev/null +++ b/.changes/linux-notification-icon.md @@ -0,0 +1,5 @@ +--- +"tauri": patch +--- + +Set notification icon to app icon on Linux. \ No newline at end of file diff --git a/core/tauri/src/api/notification.rs b/core/tauri/src/api/notification.rs index 982283f21..f7333bbdd 100644 --- a/core/tauri/src/api/notification.rs +++ b/core/tauri/src/api/notification.rs @@ -83,6 +83,8 @@ impl Notification { } if let Some(icon) = self.icon { notification.icon(&icon); + } else { + notification.auto_icon(); } #[cfg(windows)] {