From 80cabe3636505da27f701c4b3735694415593ee0 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 29 Jul 2008 21:24:36 +0200 Subject: document touching of theme dirs --- spec/sound-theme-spec.xml | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/spec/sound-theme-spec.xml b/spec/sound-theme-spec.xml index 0a53c42..b0d2923 100644 --- a/spec/sound-theme-spec.xml +++ b/spec/sound-theme-spec.xml @@ -611,6 +611,12 @@ DisplayName[fr]=Message urgent dans Evolution whatever sound you have in the freedesktop theme so that all your application can at least produce some sounds in all themes. + + After installing/updating a sound in a theme directory, make sure + to update the mtime of the theme directory itself (i.e. touch + $XDG_DATA_DIRS/sounds/freedesktop or similar), so that caches can + be kept up-to-date. + @@ -623,13 +629,14 @@ DisplayName[fr]=Message urgent dans Evolution information. - This caching can make it impossible for users to add sounds 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 sound directories when doing a cache lookup, unless - it already did so less than 5 seconds ago. This means that any - sound editor or theme installation program need only to change the - mtime of the the toplevel directory where it changed the theme to + This caching can make it impossible for users to add sounds + 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 sound theme directories when doing a cache + lookup, unless it already did so less than 5 seconds ago. This + means that any sound editor or theme installation program may + change the mtime of the the toplevel theme directory (such as + $XDG_DATA_DIRS/sounds/freedesktop) where it changed the theme to make sure that the new sounds will eventually get used. @@ -644,6 +651,18 @@ DisplayName[fr]=Message urgent dans Evolution Change history + + Version 0.4, 29 July 2008, Lennart Poettering + + + + + Document that every time a theme is updated to changed the directory needs to be touched. + + + + + Version 0.3, 25 July 2008, Lennart Poettering -- cgit