Stupid feature suggested by Martin Pitt. Comedy notify on exit

This commit is contained in:
Chris Jones 2009-05-29 16:23:21 +02:00
parent ac56c18501
commit 224fddedbd
1 changed files with 11 additions and 0 deletions

View File

@ -174,3 +174,14 @@ See the following bug report for more details:
gtk.main()
try:
import pynotify
pynotify.init(APP_NAME.capitalize())
icontheme = gtk.IconTheme()
icon = icontheme.lookup_icon(APP_NAME, 48, 0)
notification = pynotify.Notification('Terminator', "I'll be back", icon.get_filename())
notification.set_urgency(pynotify.URGENCY_LOW)
notification.show()
except:
pass