#!/bin/sh -e

SCHEMA_LOCATION=/usr/share/gconf/schemas
SCHEMA_FILES="wee.schema"
if [ -e "$SCHEMA_LOCATION/$SCHEMA_FILES" ]; then
	HOME=/root GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \
		gconftool-2 \
		--makefile-install-rule $SCHEMA_LOCATION/$SCHEMA_FILES > /dev/null
fi

kill -s HUP `pidof gconfd-2` >/dev/null 2>&1 || true

if [ "$1" = "configure" ] && which update-desktop-database >/dev/null 2>&1 ; then
	update-desktop-database -q
fi

exit 0
