X-Git-Url: http://git.maemo.org/git/?p=browser-switch;a=blobdiff_plain;f=debian%2Fpostrm;h=caeb3080136b16e697c20fb740a584a5da1a45e8;hp=72d9b3fa80f48f3261f68d046a466bd83ad9c90c;hb=007f12d8930bbef0998dc0d26806dbef0d7947b5;hpb=6f51972ae564ca85a5fd90d05561f9b1c35ebcf3 diff --git a/debian/postrm b/debian/postrm index 72d9b3f..caeb308 100644 --- a/debian/postrm +++ b/debian/postrm @@ -19,11 +19,17 @@ set -e # the debian-policy package kill_old_proxies() { + # Kill off old python browser-switchboards, if any # This would be so much nicer with pgrep/pkill ... proxy_pids=`busybox ps | fgrep "python /usr/bin/browser-switchboard" | fgrep -v grep | awk '{ print $1 }'` if [ ! -z "$proxy_pids" ]; then kill $proxy_pids fi + # Kill off C browser-switchboards + proxy_pids=`pidof browser-switchboard || true` + if [ ! -z "$proxy_pids" ]; then + kill $proxy_pids + fi } case "$1" in @@ -40,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