Make mailnag-notify.py notifications last forever

This commit is contained in:
Alexander Rosenberg 2022-12-25 16:52:18 -08:00
parent 5f24a1e46b
commit 94885dd00f
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -4,7 +4,7 @@ import subprocess
def notify_send(subj, data): def notify_send(subj, data):
result = subprocess.run(["notify-send", subj, data]) result = subprocess.run(["notify-send", "-t", "0", subj, data])
if result.returncode == -127: if result.returncode == -127:
print("error: notify-send program not found in PATH", file=sys.stderr) print("error: notify-send program not found in PATH", file=sys.stderr)
exit(1) exit(1)