~ci-train-bot/sni-qt/sni-qt-ubuntu-zesty-2208.1

Viewing all changes in revision 103.

  • Committer: Bileto Bot
  • Author(s): Marco Trevisan (Treviño)
  • Date: 2016-11-24 18:38:21 UTC
  • mfrom: (101.1.8 sni-qt)
  • Revision ID: ci-train-bot@canonical.com-20161124183821-uuiorcs4ra2rdhge
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 $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.

Also when running in a snap, save icons in $XDG_CACHE_HOME or in the user
cache, but still in an indicator readable location (LP: #1600136)

Approved by: Lukáš Tinkl

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: