From 232e1e80b1c00ee345f323c80269068f1e3dc2c2 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 14 Mar 2021 10:41:21 +0000 Subject: [PATCH] Show banner in notification client --- notifications_client.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/notifications_client.py b/notifications_client.py index 3b6198e6a..d225a7c13 100644 --- a/notifications_client.py +++ b/notifications_client.py @@ -576,6 +576,13 @@ def runNotificationsClient(baseDir: str, proxyType: str, httpPrefix: str, """Runs the notifications and screen reader client, which announces new inbox items """ + bannerFilename = 'theme/default/banner.txt' + if os.path.isfile(bannerFilename): + with open(bannerFilename, 'r') as bannerFile: + banner = bannerFile.read() + if banner: + print(banner + '\n') + espeak = None if screenreader: if screenreader == 'espeak':