1
<refentry id="gtk-update-icon-cache">
4
<refentrytitle>gtk-update-icon-cache</refentrytitle>
5
<manvolnum>1</manvolnum>
9
<refname>gtk-update-icon-cache</refname>
10
<refpurpose>Icon theme caching utility</refpurpose>
15
<command>gtk-update-icon-cache</command>
16
<arg choice="opt">--force</arg>
17
<arg choice="opt">--ignore-theme-index</arg>
18
<arg choice="opt">--index-only</arg>
19
<arg choice="opt">--source<arg>name</arg></arg>
20
<arg choice="opt">--quiet</arg>
21
<arg choice="req">iconpath</arg>
25
<refsect1><title>Description</title>
26
<para><command>gtk-update-icon-cache</command> creates mmap()able cache files for
30
It expects to be given the path to a icon theme directory containing an
31
<filename>index.theme</filename>, e.g. <filename>/usr/share/icons/hicolor</filename>,
32
and writes a <filename>icon-theme.cache</filename> containing cached information
33
about the icons in the directory tree below the given directory.
36
GTK+ can use the cache files created by <command>gtk-update-icon-cache</command>
37
to avoid a lot of system call and disk seek overhead when the application starts.
38
Since the format of the cache files allows them to be mmap()ed shared between
39
multiple applications, the overall memory consumption is reduced as well.
43
<refsect1><title>Options</title>
48
<listitem><para>Overwrite an existing cache file even if it appears to be
49
uptodate.</para></listitem>
53
<term>--ignore-theme-index</term>
55
<listitem><para>Don't check for the existence of 'index.theme' in the icon theme
56
directory. Without this option, <command>gtk-update-icon-cache</command> refuses
57
to create an icon cache in a directory which does not appear to be the toplevel
58
directory of an icon theme.
63
<term>--index-only</term>
65
<listitem><para>Don't include image data in the cache.
72
<listitem><para>Output a C header file declaring a constant
73
<replaceable>name</replaceable> with the contents of the icon
74
cache.</para></listitem>
80
<listitem><para>Turn off verbose output.
86
<refsect1><title>Bugs</title>