OSX notifications: Revert to using Qt+Growl as the Growl python bindings apparently crash on some systems

This commit is contained in:
Kovid Goyal 2010-01-26 13:23:44 -07:00
parent 3911e5711d
commit 2d33bab4bd
2 changed files with 7 additions and 5 deletions

View File

@ -23,7 +23,7 @@ class N516(USBMS):
VENDOR_ID = [0x0525]
PRODUCT_ID = [0xa4a5]
BCD = [0x323]
BCD = [0x323, 0x326]
VENDOR_NAME = 'INGENIC'
WINDOWS_MAIN_MEM = '_FILE-STOR_GADGE'

View File

@ -85,6 +85,8 @@ class QtNotifier(Notifier):
def __call__(self, body, summary=None, replaces_id=None, timeout=0):
timeout, body, summary = self.get_msg_parms(timeout, body, summary)
if self.systray is not None:
if isosx and isinstance(body, unicode):
body = body.encode('utf-8')
self.systray.showMessage(summary, body, self.systray.Information,
timeout)
@ -127,10 +129,10 @@ def get_notifier(systray=None):
ans = FDONotifier()
if not ans.ok:
ans = None
if isosx:
ans = GrowlNotifier()
if not ans.ok:
ans = None
#if isosx:
# ans = GrowlNotifier()
# if not ans.ok:
# ans = None
if ans is None:
ans = QtNotifier(systray)
if not ans.ok: