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!
#!/usr/bin/python
import sys
import pynotifyif __name__ == ‘__main__’:
if not pynotify.init (“summary-body”):
sys.exit (1)# try the summary-body case
n = pynotify.Notification (“Cloudlink”,
“Hello Brian 🙂 “)
n.show ()
This results in something like this (under linux mint – top right corner):