#!/bin/sh
#
# $FreeBSD: ports/x11/libgnome/files/pkg-deinstall.in,v 1.12 2010/11/20 15:37:02 kwm Exp $
#   $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
