8
print "usage: test-appname.py app_name"
11
app_name = sys.argv[1]
13
if not pynotify.init(sys.argv[1]):
14
print "Failed to initialize notifications."
17
n = pynotify.Notification("Message from " + app_name,
18
"This is a test, this is only a test.")
21
print "Failed to send notification."
24
if __name__ == "__main__":