LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 07-09-2023, 12:57 PM   #1
the dsc
Member
 
Registered: May 2009
Distribution: Debian
Posts: 175
Blog Entries: 244

Rep: Reputation: 47
Notification daemons no longer support html-like displaying of images with the <img> tag?


Until a few weeks ago, I could use:

Code:
\notify-send -a "image notification"  '<img src="/$USER/image.jpg">'
and it would bring a notification "popup" with the image. Now they just show the literal text in popup.

Tried with notification-daemon, lxqt-notificationd, dunst and xfce4-notifyd. Also tried to test with mate-notification-daemon, but it's just segfaulting for me. Somehow fixed the segfault, but nothing. Also tried some daemon from the "uikui" DE and notify-OSD.

Debian "bookworm," openbox WM/"DE," xorg. Liquorix kernel? I don't think a otherwise finely working non-stock kernel could explain it... could it? Seems too specific. Well, that I can test easily, I still have at least an older stock-one. Yep, apparently it isn't a kernel issue, unsurprisingly.


Downgraded libnotify4 and libnotify-bin to the outdated old-stable version, and still no images like I used to have. I guess there must be a somewhat cryptic additional package/library that adds this feature, without having it obviously implied in its name or stated on the description, that went missing in the upgrades for some reason.

Last edited by the dsc; 07-11-2023 at 07:16 AM. Reason: update
 
Old 08-23-2023, 12:29 PM   #2
the dsc
Member
 
Registered: May 2009
Distribution: Debian
Posts: 175

Original Poster
Blog Entries: 244

Rep: Reputation: 47
I figured out the "solution." The command should be something like this:

Code:
notify-send -a "app-name" "summary/title" 'body of the notification that can include images. <img src="/$USER/image.jpg">'
So, the command in the original post lacks the explicit "summary/title," but it really does not, without it, notify-send interprets the body as the summary, but it can't have images there.

I don't know whether there was some recent change in libraries/programs, which previously either assumed that the formatted text block wasn't a summary/title, or "merged" the "-a" part with the summary/title... or yet, maybe I had the summary/title part set and removed in my script, although it doesn't quite look like that from the commented left-overs. But it's even perhaps the most likely explanation, my own mistake.

Last edited by the dsc; 08-23-2023 at 12:39 PM.
 
  


Reply

Tags
notification



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help to translate this FIX Message with the Tag Name tag Number and Tag Value jtighe Linux - Newbie 3 08-18-2022 08:32 AM
Linux SCTP module replies ABORT with existing v-tag for new INIT with init-tag=0. is it correct? liotliol Linux - Networking 0 08-28-2021 05:51 AM
Feedback on Potential New Features Wanted - User Tagging, Hash Tag Support and Quote Notification jeremy LQ Suggestions & Feedback 29 01-03-2014 10:38 AM
Need assistance with shell script - replace a string with a start tag and end tag SupermanInNY Programming 18 01-02-2010 05:44 PM
PHP: how can I return an image - not the html img src tag, but the image data BrianK Programming 3 05-18-2007 02:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 04:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration