cinnyapp / cinny-desktop

Yet another matrix client for desktop
GNU Affero General Public License v3.0
415 stars 49 forks source link

Unsupported URI schema in app_icon for desktop notifications #337

Open jsonmaf1a opened 2 months ago

jsonmaf1a commented 2 months ago

Describe the bug

There are at least two ways to send desktop notifications in Tauri apps:

In Cinny, notifications use a URL for the icon, which is received as app_icon by the desktop notification server. However, this is unsupported according to the Freedesktop.org notifications specification. As a result, notifications on Linux are rendered without an icon.

Reproduction

  1. Receive a desktop notification.
  2. Observe that the notification icon is missing.

Expected behavior

Notifications should display an icon.

Platform and versions

1. OS: Arch Linux
2. Cinny version: 4.1.0
3. Matrix homeserver: matrix.org
4. Downloaded from: local build

Additional context

Also, I believe you should try to pass icon as image-path or image-data and not app_icon, and the app_icon should probably be "cinny" or something. Doing that allows the server to either display the image (if there is one), the icon (if there is no image, as a fallback) or both (for rare servers that support it).

jsonmaf1a commented 2 months ago

i need to do some research, so I'll close this issue for a while