Adding icon cache to kdelibs?

Thiago Macieira thiago at kde.org
Thu Jun 21 14:08:31 BST 2007


Jakob Petsovits said:
>> "This caching can make it impossible for users to add icons without
>> having
>> to restart applications. In order to handle this, any implementation
>> that
>> does caching is required to look at the mtime of the toplevel icon
>> directories when doing a cache lookup, unless it already did so less
>> than
>> 5 seconds ago. This means that any icon editor or theme installation
>> program need only to change the mtime of the the toplevel directory
>> where
>> it changed the theme to make sure that the new icons will eventually get
>> used."

> Wouldn't it make sense to check on the index.desktop file of the theme
> instead? That one should have an updated mtime every time a new version is
> installed, and would work with tarballs as far as I can see.

You're talking about installing a new theme or upgrading an existing one.

But the problem is a bit wider than that: what happens if new icons are
added to a theme, especially the hicolor theme?

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358






More information about the kde-core-devel mailing list