Skip to content

Commit

Permalink
feat: set app in notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
desbma committed Feb 21, 2024
1 parent e20f022 commit e235c81
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/notif.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ pub fn show(msg: &gotify::Message) -> anyhow::Result<()> {
let mut notif = notify_rust::Notification::new();
notif.summary(&msg.title).body(&msg.message);
#[cfg(all(unix, not(target_os = "macos")))]
notif.urgency(urgency);
notif
.urgency(urgency)
.appname("Gotify Desktop")
.hint(notify_rust::Hint::DesktopEntry("gotify-desktop".to_owned()));
if let Some(img_filepath) = &msg.app_img_filepath.as_ref() {
notif.icon(
img_filepath
Expand Down

0 comments on commit e235c81

Please sign in to comment.