Python system tray notifications in Linux
As a follow up to my previous post, here’s how to accomplish system tray notifications in ubuntu linux and family. I must say, compared to windows, this is child’s play… under ten lines of code!
if __name__ == ‘__main__’:
if not pynotify.init (“summary-body”):
- try the summary-body case
n = pynotify.Notification (“Cloudlink”,
“Hello Brian🙂 “)
This results in something like this (under linux mint – top right corner):