Use application name as thread identifier for cocoa notifications

This commit is contained in:
Kovid Goyal
2024-07-30 07:48:52 +05:30
parent 9b19f300fe
commit f998af56fc
3 changed files with 15 additions and 11 deletions

View File

@@ -487,7 +487,7 @@ class MacOSIntegration(DesktopIntegration):
# for %% escaping.
body = (nc.body or ' ')
assert nc.urgency is not None
cocoa_send_notification(str(desktop_notification_id), nc.title, body, nc.urgency.value)
cocoa_send_notification(nc.application_name or 'kitty', str(desktop_notification_id), nc.title, body, nc.urgency.value)
return desktop_notification_id
def notification_activated(self, event: str, ident: str) -> None: