From 3b04e6cc4b9a951906cd714b474975d156372534 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 30 Sep 2010 22:36:55 +0200 Subject: [PATCH] [Dicson] improve KDE4 notifications. Fixes #5940 --- src/notify.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/notify.py b/src/notify.py index 9c8624b68..dddb1427f 100644 --- a/src/notify.py +++ b/src/notify.py @@ -583,6 +583,14 @@ class DesktopNotification: text = self.text else: text = ' ' + if os.environ.get('KDE_FULL_SESSION') == 'true': + self.path_to_image = os.path.abspath(self.path_to_image) + text = '' \ + '
' \ + ' %st4i
' % (self.path_to_image, + text) + self.path_to_image = os.path.abspath( + gtkgui_helpers.get_icon_path('gajim', 48)) actions = () if 'actions' in self.capabilities: actions = (dbus.String('default'), dbus.String(