diff --git a/src/notify.py b/src/notify.py index 6cac6005ae26bee31abb80441d893bd9ca7dc17f..a8a7378634b964a8e42214225fe7c565c337d010 100644 --- a/src/notify.py +++ b/src/notify.py @@ -366,6 +366,7 @@ class DesktopNotification: hints['category'] = dbus.String(ntype) # it seems notification-daemon doesn't like empty text if self.text: + text = self.text if len(self.text) > 200: text = '%s\n...' % self.text[:200] else: