From b759c601cc506a4abee3ab93749357be699cf030 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Wed, 26 Mar 2008 02:06:35 +0100 Subject: Disabled find_version plugin until it works when started as root --- portato/plistener.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'portato') diff --git a/portato/plistener.py b/portato/plistener.py index b5948ca..2e35ccb 100644 --- a/portato/plistener.py +++ b/portato/plistener.py @@ -71,7 +71,7 @@ class PListener (object): Popen(cmdlist) - def do_notify(self, base, descr, icon, urgency): + def do_notify(self, base, descr, icon, urgency = None): """Displays a notify. This will do nothing if pynotify is not present and/or root is running the listener.""" @@ -80,7 +80,8 @@ class PListener (object): pynotify.init(APP) n = pynotify.Notification(base, descr, icon) - n.set_urgency(int(urgency)) + if urgency is not None and urgency != "": + n.set_urgency(int(urgency)) n.show() def set_send (self, mem = None, sig = None, rw = None): -- cgit v1.2.3-70-g09d2