#!/bin/sh -e
DEFAULTS=/etc/gnome/defaults.list
if [ -f $DEFAULTS ]; then
	cat $DEFAULTS | sed -e '/application\/x\-scratch\-project\=scratch\.desktop/d' > ./defaults.list
	mv ./defaults.list $DEFAULTS
	gtk-update-icon-cache -qf /usr/share/icons/hicolor
fi
update-mime-database /usr/share/mime

# for freedeskoptop compatible env's
if [ -x update-desktop-database ]; then
	update-desktop-database	
fi
# for KDE
if [ -x kbuildsycoca ]; then
	kbuildsycoca
fi

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

