From ea80c6d6390b3a958d6e72c0fdd22ada8c6d3d85 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Mon, 11 Sep 2017 07:02:48 -0300 Subject: [PATCH] ui: notify.py: disable python Notify extension For whatever reason, this doesn't work on Fedora 26: 06:47:05,925 DEBUG [ReceiverListener:hidraw1] logitech_receiver.base: (13) => r[20 02 0100 0000000000000000000000] 06:47:05,925 DEBUG [ReceiverListener:hidraw1] logitech_receiver.notifications: (1.0) custom notification Notification(2,01,00,000000000$ 06:47:05,925 WARNING [ReceiverListener:hidraw1] logitech_receiver.notifications: : unrecognized Notification(2,01,00,000000000000000000000$ 06:47:08,806 ERROR [MainThread] solaar.ui.notify: showing Traceback (most recent call last): File "./devel/solaar/lib/solaar/ui/notify.py", line 145, in show n.show() Error: g-io-error-quark: Error calling StartServiceByName for org.freedesktop.Notifications: Timeout was reached (24) So, disable it. Signed-off-by: Mauro Carvalho Chehab --- lib/solaar/ui/notify.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/solaar/ui/notify.py b/lib/solaar/ui/notify.py index 3bca1049..2fa4eee6 100644 --- a/lib/solaar/ui/notify.py +++ b/lib/solaar/ui/notify.py @@ -35,7 +35,16 @@ try: from gi.repository import Notify # assumed to be working since the import succeeded - available = True + # available = True + + # This is not working on Fedora 26. If fails with: + # ERROR [MainThread] solaar.ui.notify: showing + # File "./solaar/lib/solaar/ui/notify.py", line 145, in show + # n.show() + # Error: g-io-error-quark: Error calling StartServiceByName for org.freedesktop.Notifications: Timeout was reached (24) + + available = False + except (ValueError, ImportError): available = False