SrainApp / srain

Modern IRC client written in GTK
https://srain.silverrainz.me/
Other
305 stars 34 forks source link

notification displays html code #263

Open solsticedhiver opened 4 years ago

solsticedhiver commented 4 years ago

Using gnome 3.36.5 /gnome-shell on archlinux, when I receive a notification, it is displayed with html code/tag like

<span foreground='#xxxxxx"><b>mypseudo</b></span>

I except to see readable text without html tag.

I guess my notification daemon does not support html, or it needs to be told there is some html ?

SilverRainZ commented 4 years ago

What is your notification daemon?

solsticedhiver commented 4 years ago

I have no idea. The default one built-in gnome shell 3.36 ?

kennylevinsen commented 4 years ago

I don't think span is a supported tag in the notification spec.

https://developer.gnome.org/notification-spec/

A full-blown HTML implementation is not required of this spec, and notifications should never take advantage of tags that are not listed above.

This list only includes <b>, <i>, <u>, <a> and <img>.

(Even then, these tags are technically only supported if the body-markup is capability is reported by org.freedesktop.Notifications.GetCapabilities, but I assume that is set for most daemons.)

oz-orz commented 3 years ago

I also experience this on an up-to-date Arch Linux install in GNOME.

arthur-dog commented 11 months ago

Hi! I just wanted to chime in and say I experience the same issue using GNOME 42.2 on Guix System, Srain version 1.5.0.