From 224fddedbd8f202d6a0677423f86768f9e48cb07 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Fri, 29 May 2009 16:23:21 +0200 Subject: [PATCH] Stupid feature suggested by Martin Pitt. Comedy notify on exit --- terminator | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/terminator b/terminator index 3ffb1a09..5d449e6b 100755 --- a/terminator +++ b/terminator @@ -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 +