From 0fef31e035bda526f0d4948aaaca05d429ff0a4a Mon Sep 17 00:00:00 2001 From: Steven Luo Date: Mon, 19 Apr 2010 03:32:34 -0700 Subject: [PATCH] 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. --- debian/postrm | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 1.7.9.5