From: Quentin Smith Date: Tue, 3 Mar 2009 02:58:11 +0000 (-0500) Subject: Send messages 'remotely' (to localhost), to work around growl bug #267767 X-Git-Url: https://snippets.scripts.mit.edu/gitweb.cgi/Scripts/git/.git/commitdiff_plain/7f245c309791a4de3b7ffdde7992209c2076a620 Send messages 'remotely' (to localhost), to work around growl bug #267767 --- diff --git a/barn-growl/barn-growl.py b/barn-growl/barn-growl.py index 2033f22..e36f719 100755 --- a/barn-growl/barn-growl.py +++ b/barn-growl/barn-growl.py @@ -50,7 +50,7 @@ class Notifier(AbstractConsumer): print (id, header) print message if self.usegrowl: - growlnotify = ['growlnotify', '-a', 'MacZephyr', '-n', 'zephyr', '-d', id, '-t', header] + growlnotify = ['growlnotify', '-H', 'localhost', '-a', 'MacZephyr', '-n', 'zephyr', '-d', id, '-t', header] g = subprocess.Popen(growlnotify, stdin=subprocess.PIPE) g.stdin.write(message) g.stdin.close()