Bug 502153 - Notifications created with `notify-send` don't honor the icon
Summary: Notifications created with `notify-send` don't honor the icon
Status: RESOLVED UPSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: Notifications (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL: https://gitlab.gnome.org/GNOME/libnot...
Keywords: regression
Depends on:
Blocks:
 
Reported: 2025-03-29 14:00 UTC by Nate Graham
Modified: 2025-03-29 17:17 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: libnotify-0.8.6
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2025-03-29 14:00:20 UTC
I often test notifications using `notify-send`, but recently on git master, I've noticed that the --icon argument is being ignored.

For example, if I run:

> notify-send --urgency=critical --app-name "System Exploder Monitor" --icon granatier "Urgent Alert" "Your computer is about to explode"

I get a notification without an icon.
Comment 1 Naxdy 2025-03-29 14:05:50 UTC
Cannot reproduce on current master (commit 92a41d44f701c39f175a2e33aba7718e62382c32) using the command you provided - do you have any other patches applied ?
Comment 2 Nate Graham 2025-03-29 14:18:31 UTC
No, none.
Comment 3 Naxdy 2025-03-29 14:22:51 UTC
Could it be a regression in libnotify? What's your version there?

Also, do other notifications with icons still work (e.g. Telegram with the user's profile picture) or are they also broken for you?
Comment 4 Nate Graham 2025-03-29 14:42:14 UTC
Notifications with icons from Telegram and Element do show icons, yeah.

I wonder if it's related to Bug 500879 somehow. That one I couldn't reproduce!

I've got libnotify-0.8.4.
Comment 5 Naxdy 2025-03-29 14:53:49 UTC
Can reproduce with libnotify 0.8.4. Libnotify 0.8.3 (which I tested with before) doesn't have this issue. Think it's safe to say it's not our issue then.
Comment 6 Nate Graham 2025-03-29 14:54:33 UTC
Excellent, thanks. I'll report it to them.
Comment 7 Nate Graham 2025-03-29 14:58:58 UTC
Yep, looks like it's https://gitlab.gnome.org/GNOME/libnotify/-/issues/53.
Comment 8 Nate Graham 2025-03-29 17:17:57 UTC
And I can confirm that libnotify-0.8.6 fixes it.