Fix MPRIS2 DesktopEntry value

Authored by arojas on Aug 20 2016, 11:09 AM.

Description

Fix MPRIS2 DesktopEntry value

According to the MPRIS2 spec, the DesktopEntry value should be
"the basename of the .desktop file" [1], not the desktop-file-id. So
for amarok it should be "amarok" and not "kde4-amarok", regardless of
where the desktop file is installed. This fixes displaying MPRIS
controls in the Amarok taskbar tooltip in Plasma 5.7

[1] https://specifications.freedesktop.org/mpris-spec/latest/Media_Player.html#Property:DesktopEntry

Testing done by Antonio:

Player controls are displayed again in the Amarok taskbar tooltip in Plasma 5.7.

REVIEW: 128418
BUG: 365275
FIXED-IN: 2.9

Details

Committed
Matěj Laitl <matej@laitl.cz>Aug 20 2016, 11:10 AM
Parents
R181:970e985d6100: Fix for C++ warnings about unused variables and deprecated functions
Branches
Unknown
Tags
Unknown
Matěj Laitl <matej@laitl.cz> committed R181:9449ec56d1fd: Fix MPRIS2 DesktopEntry value (authored by arojas).Aug 20 2016, 11:10 AM