! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Xfce4-notifyd does not support updating existing notifications
Status:
RESOLVED: FIXED
Product:
Xfce4-notifyd
Component:
general

Comments

Description Ethan 2014-04-05 02:54:48 CEST
As it stands right now xfce4-notifyd, more specifically notify-send, does not have an option to update a preexisting notification, rather than creating a new one.

For example, I have a script to adjust pulseaudio volume.  If I want to display the current volume as I'm changing it, I have to create a constant stream of new notifications as the volume changes.  Instead it would be ideal if I could instead create a notification, then change it on-the-fly using some sort of identifier.  Once it goes unchanged for the timeout period, it should then be dismissed.

Some sort of unique identifier would be necessary for each notification, so that you can specifically target a popup.
Comment 1 Andre Miranda editbugs 2014-05-12 16:51:05 CEST
As of now xfce4-volumed notifications works just like this.
Check the code here: http://git.xfce.org/apps/xfce4-volumed/tree/src/xvd_notify.c#n28

Here is a python3 example:
#!/usr/bin/python
import time
from gi.repository import Notify
Notify.init ("Hello world")
Hello=Notify.Notification.new ("Hello world","This is an example notification.","dialog-information")
Hello.show ()
time.sleep(2)
Hello.update("Good bye world","This is the updated notification.","dialog-warning")
Hello.show ()
Comment 2 Simon Steinbeiss editbugs 2016-07-02 01:50:55 CEST
Should be fixed for quite a while already (as André noted).

Bug #10795

Reported by:
Ethan
Reported on: 2014-04-05
Last modified on: 2016-07-02

People

Assignee:
Jérôme Guelfucci
CC List:
2 users

Version

Version:
unspecified

Attachments

Additional information