diff options
Diffstat (limited to 'portato/plugins/notify.py')
-rw-r--r-- | portato/plugins/notify.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/portato/plugins/notify.py b/portato/plugins/notify.py index db024cf..ae2addd 100644 --- a/portato/plugins/notify.py +++ b/portato/plugins/notify.py @@ -1,7 +1,7 @@ from gettext import lgettext as _ import pynotify -from portato import listener +from portato import get_listener from portato.helper import warning, error, debug from portato.constants import APP_ICON, APP @@ -20,4 +20,4 @@ def notify (retcode, **kwargs): descr = _("Error Code: %d") % retcode urgency = pynotify.URGENCY_CRITICAL - listener.send_notify(base = text, descr = descr, icon = icon, urgency = urgency) + get_listener().send_notify(base = text, descr = descr, icon = icon, urgency = urgency) |