https://bugs.kde.org/show_bug.cgi?id=482908

            Bug ID: 482908
           Summary: Missing fallback icon for desktop-less MPRIS2 clients
    Classification: Plasma
           Product: plasmashell
           Version: 6.0.1
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Media Player
          Assignee: plasma-b...@kde.org
          Reporter: oguilhe...@protonmail.com
                CC: k...@privat.broulik.de
  Target Milestone: 1.0

Created attachment 166727
  --> https://bugs.kde.org/attachment.cgi?id=166727&action=edit
Missing icon in Music applet

SUMMARY
I use a daemon called mpd-mpris [1] to implement the MPRIS2 interface for Music
Player Daemon (MPD).

This daemon does not set the "DesktopEntry" option[2], because it doesn't
really have one.

This was fine back in Plasma 5, because a fallback icon would be used instead.

However, since Plasma 6, I get no icon at all (see the attachment for a
screenshot).

My suspicion is that the issue lies in this block of code from libkmpris:

https://invent.kde.org/plasma/plasma-workspace/-/blob/6e0343c873df504d20926a6e2afc146ea0e14938/libkmpris/playercontainer.cpp#L570-575

mpd-mpris does not seem to set the "DesktopEntry" option at all[3], and so that
branch in libkmpris that handles the fallback icon case, is never reached.

STEPS TO REPRODUCE
1. Have a working MPD server
2. Install mpd-mpris
3. Invoke mpd-mpris from the command line
4. Open the Music applet on Plasma 6

OBSERVED RESULT
Notice the missing icon for the MPD client.

EXPECTED RESULT
A fallback icon should be be used.

SOFTWARE/OS VERSIONS

Operating System: Arch Linux 
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.8-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-3570K CPU @ 3.40GHz
Memory: 7,7 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 660/PCIe/SSE2

ADDITIONAL INFORMATION
N/A

Refs:
[1] https://github.com/natsukagami/mpd-mpris/
[2]
https://specifications.freedesktop.org/mpris-spec/latest/Media_Player.html#Property:DesktopEntry
[3]
https://github.com/natsukagami/mpd-mpris/blob/4a10c25567adab6a67edf6ee43f3ff0128068dd9/root.go#L18-L26

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to