Answer the question
In order to leave comments, you need to log in
Notify2.UninittedError: You must call notify2.init() before using the notification features how to fix?
Watched how to make notifications in Linux. I used the notify2 library. Displays quietly notifications and ok. But then it stopped displaying, throwing the error notify2.UninittedError: You must call notify2.init() before using the notification features
How to fix this?
see code
def notifications (progress, timeout):
ICON_PATH = "spotidownload.svg"
n = notify2.Notification(f"SpotiDownload - {progress}", icon = ICON_PATH)
n.set_urgency(notify2.URGENCY_NORMAL)
n.set_timeout(timeout)
n.show()
n.close()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question