summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--plugins/new_version.xml5
-rw-r--r--portato/plistener.py5
2 files changed, 8 insertions, 2 deletions
diff --git a/plugins/new_version.xml b/plugins/new_version.xml
index 6d300dd..1aa5e33 100644
--- a/plugins/new_version.xml
+++ b/plugins/new_version.xml
@@ -14,4 +14,9 @@
<item call="find_version">Check for new _versions</item>
</menu>
+ <options>
+ <option>disabled</option>
+ </options>
+
+
</plugin>
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):