[Dicson] improve KDE4 notifications. Fixes #5940
This commit is contained in:
parent
27b3621680
commit
3b04e6cc4b
|
@ -583,6 +583,14 @@ class DesktopNotification:
|
||||||
text = self.text
|
text = self.text
|
||||||
else:
|
else:
|
||||||
text = ' '
|
text = ' '
|
||||||
|
if os.environ.get('KDE_FULL_SESSION') == 'true':
|
||||||
|
self.path_to_image = os.path.abspath(self.path_to_image)
|
||||||
|
text = '<table style=\'padding: 3px\'><tr><td>' \
|
||||||
|
'<img src=\"%s\"></td><td width=20> </td>' \
|
||||||
|
'<td>%st4i</td></tr></table>' % (self.path_to_image,
|
||||||
|
text)
|
||||||
|
self.path_to_image = os.path.abspath(
|
||||||
|
gtkgui_helpers.get_icon_path('gajim', 48))
|
||||||
actions = ()
|
actions = ()
|
||||||
if 'actions' in self.capabilities:
|
if 'actions' in self.capabilities:
|
||||||
actions = (dbus.String('default'), dbus.String(
|
actions = (dbus.String('default'), dbus.String(
|
||||||
|
|
Loading…
Reference in New Issue