Introduction
icon-theme.cache is an index of the icons in a theme directory, built by
gtk-update-icon-cache so that GTK programs can map it into memory. The
.cache extension is also used by many unrelated programs.
Structure
A binary file with big-endian integers. A 12-byte header holds the major version (1), the minor version (0), the offset of a hash table and the offset of a directory list. The hash table has a bucket count, one offset per bucket and chains of entries; the directory list has a count, one offset per directory and the names.
Not described
Known, not yet covered
- Reference: the layout of the format is not yet described here, including the icon entries and any embedded image data.
- Viewer: the site has no viewer for this format.
Links
Software
- gtk-update-icon-cache – the GTK tool that builds and validates the file
Reference
- updateiconcache.c – GTK 3 source, Debian copy