Section: User Commands (1)
gtk4-update-icon-cache - Icon theme caching utility
gtk4-update-icon-cache [--force] [--ignore-theme-index] [--index-only | --include-image-data] [--source NAME] [--quiet] [--validate] PATH
creates mmapable cache files for icon themes.
It expects to be given the
to an icon theme directory containing an
/usr/share/icons/hicolor, and writes a
containing cached information about the icons in the directory tree below the given directory.
GTK can use the cache files created by
to avoid a lot of system call and disk seek overhead when the application starts. Since the format of the cache files allows them to be shared across multiple processes, for instance using the POSIX
system call, the overall memory consumption is reduced as well.
Overwrite an existing cache file even if it appears to be up-to-date.
Don't check for the existence of
in the icon theme directory. Without this option,
refuses to create an icon cache in a directory which does not appear to be the toplevel directory of an icon theme.
Don't include image data in the cache.
Include image data in the cache.
Output a C header file declaring a constant
with the contents of the icon cache.
Turn off verbose output.
Validate existing icon cache.