notification-hub

distraction-free notification daemon for simple linux desktops.
git clone https://git.ce9e.org/notification-hub.git

commit
9e0aab365df79db731938251a376a6436acd4c19
parent
6e4a6f8cca4fec346eeb38b8218e12af50a60e25
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2026-02-08 11:21
deal with empty app_name

Diffstat

M notification_hub.py 6 +++++-

1 files changed, 5 insertions, 1 deletions


diff --git a/notification_hub.py b/notification_hub.py

@@ -81,7 +81,11 @@ def on_add_notification(params, id):
   81    81     if any(matches_rule(params, rule) for rule in IGNORE):
   82    82         return
   83    83 
   84    -1     app_name = params['hints'].get('desktop-entry', params['app_name'])
   -1    84     app_name = (
   -1    85         str(params['hints'].get('desktop-entry', ''))
   -1    86         or params['app_name']
   -1    87         or f'${id}'
   -1    88     )
   85    89     thread = threads.get(app_name)
   86    90     if params['summary'] == app_name:
   87    91         label = f'{app_name}: {params["body"]}'