Review Request 127684: [Dragon] MPRIS2 property 'Identity' to match desktop file entry

Harald Sitter sitter at kde.org
Tue Apr 19 11:45:06 BST 2016



> On April 19, 2016, 8:01 a.m., Harald Sitter wrote:
> > :O
> > 
> > ^^
> > 
> > https://specifications.freedesktop.org/mpris-spec/latest/Media_Player.html#Property:Identity
> > 
> > "friendly name" in API documentation usually means that the name should be fit for display to a user, as such I think this string needs to be in i18n() instead of QStringLiteral.
> > 
> > I do wonder though. We already have this in the application aboutdata, I think that we should simply fetch it from there instead of hardcoding http://api.kde.org/frameworks-api/frameworks5-apidocs/kcoreaddons/html/classKAboutData.html#afa4023328d0c9a8e2ad203d33e2c046e  ->  http://api.kde.org/frameworks-api/frameworks5-apidocs/kcoreaddons/html/classKAboutData.html#ad286cb17098b6762c39a94e0c2823b88
> > 
> > Ultimately the KAboutData's displayName should be the same as the Name in the desktop file anyway, so you could just use that instead of hardcoding the name yet again.
> 
> Anthony Fieroni wrote:
>     https://git.reviewboard.kde.org/r/126647/
>     *does not work with Dragon as the player announces itself as "dragonplayer" while its Desktop file says "dragon"*
>     He means same property or something other?

That's slightly more involved actually. The key problem is that the taskmanager library attempts to map the dragon window to its desktop file but fails because of the name divide dragon vs. dragonplayer. This really ought to be fixed in the taskmanager and doesn't have anything to do with our mpris interfaces since the values in the taskmanager are not actaully obtained from mpris anyway.


- Harald


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/127684/#review94702
-----------------------------------------------------------


On April 19, 2016, 3:43 a.m., Anthony Fieroni wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/127684/
> -----------------------------------------------------------
> 
> (Updated April 19, 2016, 3:43 a.m.)
> 
> 
> Review request for KDE Multimedia and Harald Sitter.
> 
> 
> Bugs: 359483
>     http://bugs.kde.org/show_bug.cgi?id=359483
> 
> 
> Repository: dragon
> 
> 
> Description
> -------
> 
> ^^
> 
> 
> Diffs
> -----
> 
>   src/mpris2/mediaplayer2.cpp b8e4721 
> 
> Diff: https://git.reviewboard.kde.org/r/127684/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Anthony Fieroni
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-multimedia/attachments/20160419/2dd7a2f4/attachment.htm>
-------------- next part --------------
_______________________________________________
kde-multimedia mailing list
kde-multimedia at kde.org
https://mail.kde.org/mailman/listinfo/kde-multimedia


More information about the kde-multimedia mailing list