Skip to content

libkmpris: prevent an empty icon from being used

The previous logic would only use the fallback icon (emblem-music-symbolic), if the client had the DesktopEntry property set.

But since clients are allowed to omit that property completely (mpd-mpris does that), m_iconName would stay an empty string, and clients would be left icon-less.

This change ensures that m_iconName is never an empty string.

BUG: 482908


Before:

missing-fallback-icon-in-media-player-applet

After:

fixed-fallback-icon-in-media-player-applet

Merge request reports