Pin the desktop notification app-name to crabidy
notify-rust defaults the app-name to the executable file name (cbd-tui), so notification-daemon rules keyed on app-name break whenever the binary is renamed or wrapped. Set it explicitly. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
8bb653ab3e
commit
20e071f0af
|
|
@ -57,7 +57,11 @@ impl NowPlaying {
|
|||
format!("{} by {}", track.title, track.artist,)
|
||||
};
|
||||
// A missing notification daemon must not crash the TUI.
|
||||
// The explicit appname keeps notification-daemon rules
|
||||
// (e.g. mako `app-name=` criteria) stable even if the
|
||||
// binary is renamed or wrapped.
|
||||
if let Err(err) = Notification::new()
|
||||
.appname("crabidy")
|
||||
.summary("Now playing")
|
||||
.body(&body)
|
||||
.show()
|
||||
|
|
|
|||
Loading…
Reference in New Issue