diff options
| author | Ross Burton <ross.burton@intel.com> | 2019-06-24 17:27:11 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-06-27 12:20:36 +0100 |
| commit | e58f930df5a22ee42c27cff0ca12bc9bf961b74b (patch) | |
| tree | 30078a870ad6cc214147aeead54641e6222e563e /scripts/postinst-intercepts/update_gtk_icon_cache | |
| parent | b111ac57aebd9928765b9bb8ee2fb4eb3c74972a (diff) | |
| download | poky-e58f930df5a22ee42c27cff0ca12bc9bf961b74b.tar.gz | |
gtk-icon-cache: rename intercept to update_gtk_icon_cache
The intercept is called update_icon_cache which is vague: rename to
update_gtk_icon_cache to make it clearer what it is for, and add a comment
explaining what class caused it to be used.
(From OE-Core rev: 3158adbe684890adc56af11e19af872e90e09d41)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/postinst-intercepts/update_gtk_icon_cache')
| -rw-r--r-- | scripts/postinst-intercepts/update_gtk_icon_cache | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/postinst-intercepts/update_gtk_icon_cache b/scripts/postinst-intercepts/update_gtk_icon_cache new file mode 100644 index 0000000000..99367a2855 --- /dev/null +++ b/scripts/postinst-intercepts/update_gtk_icon_cache | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | # | ||
| 3 | # SPDX-License-Identifier: MIT | ||
| 4 | # | ||
| 5 | # Post-install intercept for gtk-icon-cache.bbclass | ||
| 6 | |||
| 7 | set -e | ||
| 8 | |||
| 9 | # Update native pixbuf loaders | ||
| 10 | $STAGING_DIR_NATIVE/${libdir_native}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --update-cache | ||
| 11 | |||
| 12 | for icondir in $D/usr/share/icons/*/ ; do | ||
| 13 | if [ -d $icondir ] ; then | ||
| 14 | gtk-update-icon-cache -fqt $icondir | ||
| 15 | fi | ||
| 16 | done | ||
| 17 | |||
