Custom image is not refreshed on new calls to notify-send

Bug #1994912 reported by Arnold Wright
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libnotify (Ubuntu)
New
Undecided
Unassigned

Bug Description

When using a custom image with the notify-send command (e.g. notify-send -i /home/<username>/images/test.png "test") the image, once loaded, is not refreshed. This can be tested by running a command such as the example one, then overwriting "current.png" with a different image, and running the command again. The images shown in the two notifications will both be the original image. I would expect the second image to be different.

Example "code":
cd home/<username>/images/
cp image1.png test.png
notify-send -i /home/<username>/images/test.png "test"
cp image2.png test.png
notify-send -i /home/<username>/images/test.png "test"

Of note is that this appears to affect both the notification shown on an unlocked desktop and one shown on the lock screen; however, these can be "stuck" on different versions of the image, although they will remain stuck. That is, the notification bubble shown on the lock screen will always shown one version of an image, and the desktop notification will always show one version of the image, but these are not necessarily the same image. So a notification generated with "sleep 5; <command>" (and you locking your desktop in the 5 seconds) will show one image, and then when you unlock your desktop the same notification can be a different image.

Ubuntu 20.04.04 LTS
GNOME 3.36.8
libnotify-bin 0.7.9-1ubuntu2
notify-osd <not installed>
notification-daemon <not installed>

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: libnotify-bin 0.7.9-1ubuntu2
ProcVersionSignature: Ubuntu 5.15.0-52.58~20.04.1-generic 5.15.60
Uname: Linux 5.15.0-52-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu27.24
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
Date: Wed Oct 26 21:02:54 2022
InstallationDate: Installed on 2022-04-06 (204 days ago)
InstallationMedia: Ubuntu 20.04.2.0 LTS "Focal Fossa" - Release amd64 (20210209.1)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: libnotify
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Arnold Wright (ironeagl) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.