Linux Commands Examples

A great documentation place for Linux commands

gtk-update-icon-cache

Icon theme caching utility

Synopsis

gtk-update-icon-cache [--force] [--ignore-theme-index] [--index-only] [--source [name]] [--quiet] [--validate] {iconpath}


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
source
            
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
gtk-update-icon-cache -q -t -f /usr/share/icons/Faenza
0
source
            
python setup.py install
gtk-update-icon-cache /usr/share/icons/hicolor

description

gtk-update-icon-cache creates mmap()able cache files for icon themes.

It expects to be given the path to a icon theme directory containing an index.theme, e.g. /usr/share/icons/hicolor, and writes a icon-theme.cache containing cached information about the icons in the directory tree below the given directory.

GTK+ can use the cache files created by gtk-update-icon-cache 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 mmap()ed shared between multiple applications, the overall memory consumption is reduced as well.

options

--force, -f

Overwrite an existing cache file even if it appears to be uptodate.

--ignore-theme-index, -t

Don't check for the existence of 'index.theme' in the icon theme directory. Without this option, gtk-update-icon-cache refuses to create an icon cache in a directory which does not appear to be the toplevel directory of an icon theme.

--index-only, -i

Don't include image data in the cache.

--source, -c

Output a C header file declaring a constant name with the contents of the icon cache.

--quiet, -q

Turn off verbose output.

--validate, -v

Validate existing icon cache.


bugs

None known yet.

How can this site be more helpful to YOU ?


give  feedback