K
K
KPEBETKA2014-01-16 14:48:25
linux
KPEBETKA, 2014-01-16 14:48:25

DBus.Notifications. How to close or display several notifiers at the same time?

I show notifiers, but they line up and until the previous one closes, the next one is not shown

#!/usr/bin/env python

import dbus
from dbus.mainloop.glib import DBusGMainLoop

DBusGMainLoop(set_as_default=True)
bus = dbus.SessionBus()
notify = dbus.Interface((bus.get_object('org.freedesktop.Notifications', '/org/freedesktop/Notifications')), 'org.freedesktop.Notifications')

....

n = notify.Notify('Notify', 1, 'notification-message-im', nickname, message, [], [], -1)

Forced close doesn't work
notify.CloseNotification(n)
Is it possible to display several notifiers at the same time or at least force close unnecessary ones?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
avalak, 2014-01-16
@KPEBETKA

You can update (add to) an existing notification.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question