#!/bin/sh

#update the icon cache
gtk-update-icon-cache -f /usr/share/icons/hicolor

# select the installation folder
if [ -f /usr/bin/X11/maemo-select-menu-location ]
	then /usr/bin/X11/maemo-select-menu-location conboy.desktop
fi

# remove startup screenshot if there
if [ -f /home/user/.cache/launch/de.zwong.conboy.pvr ]
	then rm /home/user/.cache/launch/de.zwong.conboy.pvr
fi

# Cleaning up the mess versions below 1:0.6.3.10 made. Can be removed after a couple of updates. 
sed -i '/conboy=hildon-conboy.desktop/ d'  /usr/share/applications/uri-action-defaults.list
sed -i '/conboy=hildon-conboy2.desktop/ d' /usr/share/applications/uri-action-defaults.list

update-desktop-database

#
# End work around
#
