#! /bin/sh

case "$1" in
    configure)

      gconf-schemas --register hildon-desktop-views.schemas
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)

    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

# Automatically added by dh_installinit
if [ -x "/etc/init.d/hildon-desktop" ]; then
	update-rc.d hildon-desktop start 51 2 3 4 . stop 20 0 1 5 6 . >/dev/null || exit $?
fi
# End automatically added section
# Automatically added by dh_installxsession
#!/bin/sh	

start=post
priority=20
script=hildon-desktop

# against policy - clean up any version around

if [ -e /etc/X11/Xsession.d/??${script} ]; then
	rm -f /etc/X11/Xsession.d/??${script}
fi

if [ -e /etc/X11/Xsession.post/??${script} ]; then
	rm -f /etc/X11/Xsession.post/??${script}
fi

if [ x"$start" = x"post" ]; then
	if [ -e /etc/X11/replace/Xsession.post/${script} ]; then
		[ -d /etc/X11/Xsession.post/ ] || mkdir -p /etc/X11/Xsession.post/
		cp -f /etc/X11/replace/Xsession.post/${script} /etc/X11/Xsession.post/${priority}${script}
	fi
else 
	if [ -e /etc/X11/replace/Xsession.d/${script} ]; then
		[ -d /etc/X11/Xsession.d/ ] || mkdir -p /etc/X11/Xsession.d/
		cp -f /etc/X11/replace/Xsession.d/${script} /etc/X11/Xsession.d/${priority}${script}
	fi
fi
# End automatically added section
# Automatically added by dh_installxsession
#!/bin/sh	

start=post
priority=21
script=hildon-desktop-wait

# against policy - clean up any version around

if [ -e /etc/X11/Xsession.d/??${script} ]; then
	rm -f /etc/X11/Xsession.d/??${script}
fi

if [ -e /etc/X11/Xsession.post/??${script} ]; then
	rm -f /etc/X11/Xsession.post/??${script}
fi

if [ x"$start" = x"post" ]; then
	if [ -e /etc/X11/replace/Xsession.post/${script} ]; then
		[ -d /etc/X11/Xsession.post/ ] || mkdir -p /etc/X11/Xsession.post/
		cp -f /etc/X11/replace/Xsession.post/${script} /etc/X11/Xsession.post/${priority}${script}
	fi
else 
	if [ -e /etc/X11/replace/Xsession.d/${script} ]; then
		[ -d /etc/X11/Xsession.d/ ] || mkdir -p /etc/X11/Xsession.d/
		cp -f /etc/X11/replace/Xsession.d/${script} /etc/X11/Xsession.d/${priority}${script}
	fi
fi
# End automatically added section


exit 0
