Show banner in notification client

main
Bob Mottram 2021-03-14 10:41:21 +00:00
parent 7c9a26f4a3
commit 232e1e80b1
1 changed files with 7 additions and 0 deletions

View File

@ -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':