Review Request 127467: PulseClient: Implement heuristics to find icon for stream

David Rosca nowrep at gmail.com
Fri Mar 25 14:04:53 UTC 2016



> On March 25, 2016, 1:43 p.m., Kai Uwe Broulik wrote:
> > src/client.cpp, lines 62-65
> > <https://git.reviewboard.kde.org/r/127467/diff/3/?file=454016#file454016line62>
> >
> >     Isn't KService::serviceByStorageId sufficient?
> >     
> >     The docs say "This function will try very hard to find a matching service." and it's what eg. Battery Monitor uses to determin the icon for the app that holds a PM inhibition and it works surprisingly well.

This expects full name of desktop file? Tried with "dolphin", "dolphin.desktop", "*dolphin*.desktop" - no luck, only "org.kde.dolphin.desktop" worked.


- David


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


On March 25, 2016, 1:39 p.m., David Rosca wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/127467/
> -----------------------------------------------------------
> 
> (Updated March 25, 2016, 1:39 p.m.)
> 
> 
> Review request for Plasma.
> 
> 
> Repository: plasma-pa
> 
> 
> Description
> -------
> 
> Implement heuristics searching for icon in desktop files.
> Also try stream name to find icon if everything else fails.
> 
> 
> Diffs
> -----
> 
>   CMakeLists.txt 3a0f690 
>   src/CMakeLists.txt b3e1855 
>   src/client.h 3b9050e 
>   src/client.cpp 6fc5814 
>   src/qml/ClientIcon.qml 83545a1 
> 
> Diff: https://git.reviewboard.kde.org/r/127467/diff/
> 
> 
> Testing
> -------
> 
> Streams now have icons even when icon_name or binary properites are empty.
> 
> 
> Thanks,
> 
> David Rosca
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20160325/9abefed1/attachment-0001.html>


More information about the Plasma-devel mailing list