Fremantle: clear hildon-control-panel's cached image on remove
authorSteven Luo <steven+maemo@steven676.net>
Mon, 19 Apr 2010 10:32:34 +0000 (03:32 -0700)
committerSteven Luo <steven+maemo@steven676.net>
Mon, 19 Apr 2010 10:32:34 +0000 (03:32 -0700)
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

index 767a4ce..caeb308 100644 (file)
@@ -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