notification-hub

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

commit
0fe08c21ebe8c2893336046725fa6bebc51e6ae0
parent
35cb38fad2c1632a4652320f8dd85568c2ae9c5f
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2020-08-09 19:33
announce fake capabilities

Diffstat

M notification_hub.py 3 ++-

1 files changed, 2 insertions, 1 deletions


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

@@ -55,7 +55,8 @@ next_id = 1
   55    55 def on_call(conn, sender, path, interface, method, parameters, invocation, user_data=None):
   56    56     global next_id
   57    57     if method == 'GetCapabilities':
   58    -1         reply = GLib.Variant('()', [])
   -1    58         # announce fake capabilities to avoid firefox fallback
   -1    59         reply = GLib.Variant('(as)', [['actions', 'body', 'body-hyperlinks']])
   59    60     elif method == 'Notify':
   60    61         print(sender, parameters)
   61    62         reply = GLib.Variant('(u)', [next_id])