mirror of https://gitlab.com/bashrc2/epicyon
Merge branch 'main' of ssh://code.freedombone.net:2222/bashrc/epicyon into main
commit
95227fa90d
|
|
@ -83,7 +83,7 @@ fi
|
||||||
echo 'RemainAfterExit=yes';
|
echo 'RemainAfterExit=yes';
|
||||||
echo '';
|
echo '';
|
||||||
echo '[Install]';
|
echo '[Install]';
|
||||||
echo 'WantedBy=multi-user.target'; } > "${HOME}/.config/systemd/user/epicyon-notifications.service"
|
echo 'WantedBy=default.target'; } > "${HOME}/.config/systemd/user/epicyon-notifications.service"
|
||||||
systemctl --user enable epicyon-notifications.service
|
systemctl --user enable epicyon-notifications.service
|
||||||
systemctl --user daemon-reload
|
systemctl --user daemon-reload
|
||||||
systemctl --user restart epicyon-notifications.service &
|
systemctl --user restart epicyon-notifications.service &
|
||||||
|
|
|
||||||
|
|
@ -410,6 +410,36 @@ def _notificationNewDM(session, toHandle: str,
|
||||||
screenreader: str, systemLanguage: str,
|
screenreader: str, systemLanguage: str,
|
||||||
espeak) -> None:
|
espeak) -> None:
|
||||||
"""Use the notification client to create a new direct message
|
"""Use the notification client to create a new direct message
|
||||||
|
which can include multiple destination handles
|
||||||
|
"""
|
||||||
|
if ' ' in toHandle:
|
||||||
|
handlesList = toHandle.split(' ')
|
||||||
|
elif ',' in toHandle:
|
||||||
|
handlesList = toHandle.split(',')
|
||||||
|
elif ';' in toHandle:
|
||||||
|
handlesList = toHandle.split(';')
|
||||||
|
else:
|
||||||
|
handlesList = [toHandle]
|
||||||
|
|
||||||
|
for handle in handlesList:
|
||||||
|
handle = handle.strip()
|
||||||
|
_notificationNewDMbase(session, handle,
|
||||||
|
baseDir, nickname, password,
|
||||||
|
domain, port, httpPrefix,
|
||||||
|
cachedWebfingers, personCache,
|
||||||
|
debug,
|
||||||
|
screenreader, systemLanguage,
|
||||||
|
espeak)
|
||||||
|
|
||||||
|
|
||||||
|
def _notificationNewDMbase(session, toHandle: str,
|
||||||
|
baseDir: str, nickname: str, password: str,
|
||||||
|
domain: str, port: int, httpPrefix: str,
|
||||||
|
cachedWebfingers: {}, personCache: {},
|
||||||
|
debug: bool,
|
||||||
|
screenreader: str, systemLanguage: str,
|
||||||
|
espeak) -> None:
|
||||||
|
"""Use the notification client to create a new direct message
|
||||||
"""
|
"""
|
||||||
toPort = port
|
toPort = port
|
||||||
if '://' in toHandle:
|
if '://' in toHandle:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue