https://bugs.kde.org/show_bug.cgi?id=361965
Bug ID: 361965
Summary: mpris integration not working with RDN launcherUrls
Product: plasmashell
Version: master
Platform: Other
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: Task Manager
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
launcherUrl in taskmanager is ideally the absolute desktop file there is
stripping logic in place in the tooltipdelegate.qml
> readonly property string current: {
> var split = launcherUrl.toString().split('/')
> var appName = split[split.length - 1].replace(".desktop", "")
> return appName
> }
but this fails to strip RDNs (it supposedly shouldn't either because RDNs add
uniqueness to the task that is lost when removing the RDN).
As a result org.kde.dragonplayer is not correctly mapped to the mpris source
'dragonplayer'.
To resolve this either the RDN should be stripped (which is a meh but probably
acceptable approach) the most reliable solution would be to use the
DesktopEntry property on the mpris interfaces [1] to get the actual desktop
entry name associated with that mpris interface which then allows a 1:1 mapping
between the launcherUrl and an mpris interface.
(Note: DesktopEntry() is optional so the existing way could still be adjusted
to accomodate RDN and act as fallback if DesktopEntry is not present)
[1]
https://specifications.freedesktop.org/mpris-spec/latest/Media_Player.html#Property:DesktopEntry
Reproducible: Always
--
You are receiving this mail because:
You are watching all bug changes.