Yak Shaving

just me

Python and Notify OSD

without comments

Silly little bit of code that will tell you when a command line operation has finished.

#!/usr/bin/env python

import sys
import pynotify

if __name__ == '__main__':
    if not pynotify.init ("icon-summary-body"):
        sys.exit (1)

    print sys.stdin.read()

    n = pynotify.Notification ("Finished")

    n.show()

This was based on https://wiki.ubuntu.com/NotificationDevelopmentGuidelines?action=AttachFile&do=view&target=icon-summary-body.py over on the article Notify OSD.

Written by channam

May 1st, 2010 at 2:00 pm

Posted in Uncategorized

Leave a Reply