#!/bin/sh
#
# $FreeBSD: tags/RELEASE_9_1_0/x11/libgnome/files/pkg-deinstall.in 300897 2012-07-14 14:29:18Z beat $
#   $MCom: ports/x11/libgnome/files/pkg-deinstall.in,v 1.29 2010/09/28 15:55:50 kwm 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
