Adding icon cache to kdelibs?
Jakob Petsovits
jpetso at gmx.at
Thu Jun 21 12:04:36 BST 2007
On Thursday, 21. June 2007, Thiago Macieira wrote:
> So says the icon theme spec:
> http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html
>
> "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."
>
> This has met some resistance in the XDG mailing list. The arguments were:
> 1) lazy packagers forget to touch the directory
> 2) installing from tarballs doesn't offer such an opportunity.
>
> #2 is a real case. #1 isn't.
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.
More information about the kde-core-devel
mailing list