[GH-ISSUE #908] Linux notification spec does not define JPG #1485

Open
opened 2026-03-14 15:12:37 +03:00 by kerem · 0 comments
Owner

Originally created by @sewnie on GitHub (Jan 5, 2026).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/908

Describe the bug
In the FreeDesktop Icon Theme Specification the only defined icon formats are PNG, SVG, or XPM, not JPG. This is important as this specification is also referenced in the notification spec.

To Reproduce
Use a strictly compliant notification daemon such as fnott.

Additional context
To workaround this, the icon can be encoded into PNG and sent as a notification. However, the notify_rust crate does not allow this, as it does not permit accepting a raw array of bytes. The only other solution would be to clear the image cache directory and download images as PNG moving forward.

Originally created by @sewnie on GitHub (Jan 5, 2026). Original GitHub issue: https://github.com/aome510/spotify-player/issues/908 **Describe the bug** In the FreeDesktop [Icon Theme Specification](https://specifications.freedesktop.org/icon-theme/latest/) the only defined icon formats are PNG, SVG, or XPM, not JPG. This is important as this specification is also referenced in the notification spec. **To Reproduce** Use a strictly compliant notification daemon such as fnott. **Additional context** To workaround this, the icon can be encoded into PNG and sent as a notification. However, the `notify_rust` crate does not allow this, as it does not permit accepting a raw array of bytes. The only other solution would be to clear the image cache directory and download images as PNG moving forward.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-player#1485
No description provided.