From: Steven Luo Date: Mon, 19 Apr 2010 10:32:34 +0000 (-0700) Subject: Fremantle: clear hildon-control-panel's cached image on remove X-Git-Tag: fremantle-package-3.2-2fremantle1~5 X-Git-Url: http://git.maemo.org/git/?p=browser-switch;a=commitdiff_plain;h=0fef31e035bda526f0d4948aaaca05d429ff0a4a Fremantle: clear hildon-control-panel's cached image on remove On Fremantle, hildon-control-panel creates a screenshot of itself, which is displayed during startup to create the illusion of a faster startup time (sigh). Of course, this cache doesn't appear to be regenerated when a control panel icon is removed (https://bugs.maemo.org/show_bug.cgi?id=9512). Wonderful. Work around by removing the cached image in the postrm. --- diff --git a/debian/postrm b/debian/postrm index 767a4ce..caeb308 100644 --- a/debian/postrm +++ b/debian/postrm @@ -46,6 +46,12 @@ case "$1" in # Kill off any running browser-switchboard to make sure that the # default browser gets launched kill_old_proxies + + # Clear hildon-control-panel's cached screenshot of itself + # Workaround for https://bugs.maemo.org/show_bug.cgi?id=9512 + if [ -f /home/user/.cache/launch/com.nokia.controlpanel.pvr ]; then + rm -f /home/user/.cache/launch/com.nokia.controlpanel.pvr + fi ;; upgrade|disappear) # Kill off any running browser-switchboard to make sure that the new