#!/bin/sh
#
# $FreeBSD: ports/x11/libgnome/files/pkg-deinstall.in,v 1.6 2007/10/24 23:36:59 marcus Exp $
#   $MCom: ports/x11/libgnome/files/pkg-deinstall.in,v 1.12 2007/04/26 14:17:52 ahze Exp $
#
# Restore gconf keys of gnomevfs2.

if [ "$2" != "POST-DEINSTALL" ]; then
	exit 0
fi

SCHEMAS=/usr/local/etc/gconf/schemas/desktop_default_applications.schemas

if [ -f ${SCHEMAS} ]; then
	env GCONF_CONFIG_SOURCE=xml::/usr/local/etc/gconf/gconf.xml.defaults \
	/usr/local/bin/gconftool-2 --makefile-install-rule ${SCHEMAS} \
		> /dev/null || /usr/bin/true
fi

exit 0
