Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken notifications on Fedora 21 (GNOME 3) #1535

Closed
mkrautz opened this issue Jan 21, 2015 · 1 comment
Closed

Broken notifications on Fedora 21 (GNOME 3) #1535

mkrautz opened this issue Jan 21, 2015 · 1 comment

Comments

@mkrautz
Copy link
Contributor

mkrautz commented Jan 21, 2015

Bendem reports on IRC that notifications are broken in Fedora 21.

HTML messages can be displayed just fine.

But notifications that include our own URL schemes (users and channels), are not displayed correctly:

https://i.imgur.com/HrSL32H.png

Are we assuming that those messages do not include HTML, and force plain text display? The notification code is older than the clickable usernames and channels, so it's possible I guess.

@bendem
Copy link
Contributor

bendem commented Jan 21, 2015

I guess the problem is upstream tho,
notify-send --icon=gtk-add "Test" "This a <a href='http://test.com'>link</a>" breaks in the same way as mumble does but notify-send --icon=gtk-add "Test" 'This is <i>italic</i>' works just fine.
(a similar report has been made to Cinnamon: linuxmint/cinnamon#2416)

EDIT: I'm using Fedora 21 with gnome 3.14.3 and mumble 1.2.6 (latest in Fedora 20 repos)

mkrautz added a commit to mkrautz/mumble that referenced this issue Apr 23, 2016
…tifications.

We've gotten reports of this for some years now, but haven't solved it in a good
way, yet.

Some notification daemons and/or desktop environments allow *some* HTML. Some don't.

The latest freedesktop.org notification specification [1] states that supporting
a HTML subset is optional, but servers that do not support the HTML subset should
filter them out.

From the reports we've received on the issue tracker for some time, it doesn't
seem like notification daemons are filtering out HTML in practice.

For example, in mumble-voip#1535, it is reported that Fedora's
(GNOME 3's?) notification daemon doesn't support the mumble:// URL scheme,
and shows raw HTML instead.

In mumble-voip#2211, it is reported that elementary OS's notification
daemon doesn't support HTML in notifications either.

So, until something changes, we'll just send plain text notifications
when using org.freedesktop.Notifications.

[1]: https://developer.gnome.org/notification-spec/

Fixes mumble-voip#2211
Fixes mumble-voip#1535
mkrautz added a commit that referenced this issue Sep 21, 2016
…tifications.

We've gotten reports of this for some years now, but haven't solved it in a good
way, yet.

Some notification daemons and/or desktop environments allow *some* HTML. Some don't.

The latest freedesktop.org notification specification [1] states that supporting
a HTML subset is optional, but servers that do not support the HTML subset should
filter them out.

From the reports we've received on the issue tracker for some time, it doesn't
seem like notification daemons are filtering out HTML in practice.

For example, in #1535, it is reported that Fedora's
(GNOME 3's?) notification daemon doesn't support the mumble:// URL scheme,
and shows raw HTML instead.

In #2211, it is reported that elementary OS's notification
daemon doesn't support HTML in notifications either.

So, until something changes, we'll just send plain text notifications
when using org.freedesktop.Notifications.

[1]: https://developer.gnome.org/notification-spec/

Fixes #2211
Fixes #1535

(cherry picked from commit a2e6cb8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants