~3v1n0/appmenu-qt5/xenial-sru2

Viewing all changes in revision 42.

  • Committer: Marco Trevisan (Treviño)
  • Date: 2016-11-24 18:38:39 UTC
  • Revision ID: mail@3v1n0.net-20161124183839-fogldlvrm50tnxsb
IconCache: get the proper theme path based on the fact we're using a themed icon or not

If an app uses QIcon::fromTheme then we only have the icon name of it,
and thus we need to return a valid icon theme path. Now, it's not possible
to return the whole list of dirs, so we just fallback to the home icons
older, so that users might in case add icons there.

In  world, when using desktop-launcher ~/.local/share/icons also
contains all the themes in from /usr/share/icons and potentially more
(depending on the wrapper used for launching) so, we can be quite flexible
with it.

Also when running in a snap, save icons in  or in the user
cache, but still in an indicator readable location 

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: