2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
5 <refentry id="gtk-update-icon-cache">
8 <refentrytitle>gtk-update-icon-cache-3.0</refentrytitle>
9 <manvolnum>1</manvolnum>
13 <refname>gtk-update-icon-cache-3.0</refname>
14 <refpurpose>Icon theme caching utility</refpurpose>
19 <command>gtk-update-icon-cache-3.0</command>
20 <arg choice="opt">--force</arg>
21 <arg choice="opt">--ignore-theme-index</arg>
22 <arg choice="opt">--index-only</arg>
23 <arg choice="opt">--source<arg>name</arg></arg>
24 <arg choice="opt">--quiet</arg>
25 <arg choice="opt">--validate</arg>
26 <arg choice="req">iconpath</arg>
30 <refsect1><title>Description</title>
32 <command>gtk-update-icon-cache-3.0</command> creates mmap()able cache
33 files for icon themes.
36 It expects to be given the path to a icon theme directory containing an
37 <filename>index.theme</filename>, e.g. <filename>/usr/share/icons/hicolor</filename>,
38 and writes a <filename>icon-theme.cache</filename> containing cached
39 information about the icons in the directory tree below the given directory.
42 GTK+ can use the cache files created by <command>gtk-update-icon-cache-3.0</command>
43 to avoid a lot of system call and disk seek overhead when the application
44 starts. Since the format of the cache files allows them to be mmap()ed
45 shared between multiple applications, the overall memory consumption is
50 <refsect1><title>Options</title>
55 <listitem><para>Overwrite an existing cache file even if it appears to be
56 uptodate.</para></listitem>
60 <term>--ignore-theme-index</term>
62 <listitem><para>Don't check for the existence of 'index.theme' in the icon
63 theme directory. Without this option, <command>gtk-update-icon-cache-3.0</command>
64 refuses to create an icon cache in a directory which does not appear to
65 be the toplevel directory of an icon theme.
70 <term>--index-only</term>
72 <listitem><para>Don't include image data in the cache.
79 <listitem><para>Output a C header file declaring a constant
80 <replaceable>name</replaceable> with the contents of the icon
81 cache.</para></listitem>
87 <listitem><para>Turn off verbose output.
92 <term>--validate</term>
94 <listitem><para>Validate existing icon cache.
100 <refsect1><title>Bugs</title>