~3v1n0/appmenu-qt5/icons-user-cache-on-snap

Viewing all changes in revision 47.

  • Committer: Marco Trevisan (Treviño)
  • Date: 2016-11-16 19:20:24 UTC
  • Revision ID: mail@3v1n0.net-20161116192024-c23wcsp6dz9x7ncb
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 folder, so that users
might in case add icons there.

In $SNAP 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.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: