diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2008-03-26 02:06:35 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2008-03-26 02:06:35 +0100 |
commit | b759c601cc506a4abee3ab93749357be699cf030 (patch) | |
tree | e4a84280a7931f6cc9f6073bcf132766cf3433cd /portato | |
parent | ce94f0a53446c93ab28f9a12c40c5b56a10d282e (diff) | |
download | portato-b759c601cc506a4abee3ab93749357be699cf030.tar.gz portato-b759c601cc506a4abee3ab93749357be699cf030.tar.bz2 portato-b759c601cc506a4abee3ab93749357be699cf030.zip |
Disabled find_version plugin until it works when started as root
Diffstat (limited to '')
-rw-r--r-- | portato/plistener.py | 5 |
1 files changed, 3 insertions, 2 deletions
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): |