if [ -x usr/bin/mateconftool-2 ]; then
MATECONF_CONFIG_SOURCE="xml::etc/mateconf/mateconf.xml.defaults"    usr/bin/mateconftool-2 --makefile-install-rule    etc/mateconf/schemas/desktop_mate_accessibility_keyboard.schemas >/dev/null 2>&1
MATECONF_CONFIG_SOURCE="xml::etc/mateconf/mateconf.xml.defaults"    usr/bin/mateconftool-2 --makefile-install-rule    etc/mateconf/schemas/desktop_mate_accessibility_startup.schemas >/dev/null 2>&1
MATECONF_CONFIG_SOURCE="xml::etc/mateconf/mateconf.xml.defaults"    usr/bin/mateconftool-2 --makefile-install-rule    etc/mateconf/schemas/desktop_mate_applications_at_mobility.schemas >/dev/null 2>&1
MATECONF_CONFIG_SOURCE="xml::etc/mateconf/mateconf.xml.defaults"    usr/bin/mateconftool-2 --makefile-install-rule    etc/mateconf/schemas/desktop_mate_applications_at_visual.schemas >/dev/null 2>&1
MATECONF_CONFIG_SOURCE="xml::etc/mateconf/mateconf.xml.defaults"    usr/bin/mateconftool-2 --makefile-install-rule    etc/mateconf/schemas/desktop_mate_applications_browser.schemas >/dev/null 2>&1
MATECONF_CONFIG_SOURCE="xml::etc/mateconf/mateconf.xml.defaults"    usr/bin/mateconftool-2 --makefile-install-rule    etc/mateconf/schemas/desktop_mate_applications_office.schemas >/dev/null 2>&1
MATECONF_CONFIG_SOURCE="xml::etc/mateconf/mateconf.xml.defaults"    usr/bin/mateconftool-2 --makefile-install-rule    etc/mateconf/schemas/desktop_mate_applications_terminal.schemas >/dev/null 2>&1
MATECONF_CONFIG_SOURCE="xml::etc/mateconf/mateconf.xml.defaults"    usr/bin/mateconftool-2 --makefile-install-rule    etc/mateconf/schemas/desktop_mate_applications_window_manager.schemas >/dev/null 2>&1
MATECONF_CONFIG_SOURCE="xml::etc/mateconf/mateconf.xml.defaults"    usr/bin/mateconftool-2 --makefile-install-rule    etc/mateconf/schemas/desktop_mate_background.schemas >/dev/null 2>&1
MATECONF_CONFIG_SOURCE="xml::etc/mateconf/mateconf.xml.defaults"    usr/bin/mateconftool-2 --makefile-install-rule    etc/mateconf/schemas/desktop_mate_file_views.schemas >/dev/null 2>&1
MATECONF_CONFIG_SOURCE="xml::etc/mateconf/mateconf.xml.defaults"    usr/bin/mateconftool-2 --makefile-install-rule    etc/mateconf/schemas/desktop_mate_interface.schemas >/dev/null 2>&1
MATECONF_CONFIG_SOURCE="xml::etc/mateconf/mateconf.xml.defaults"    usr/bin/mateconftool-2 --makefile-install-rule    etc/mateconf/schemas/desktop_mate_lockdown.schemas >/dev/null 2>&1
MATECONF_CONFIG_SOURCE="xml::etc/mateconf/mateconf.xml.defaults"    usr/bin/mateconftool-2 --makefile-install-rule    etc/mateconf/schemas/desktop_mate_peripherals_keyboard.schemas >/dev/null 2>&1
MATECONF_CONFIG_SOURCE="xml::etc/mateconf/mateconf.xml.defaults"    usr/bin/mateconftool-2 --makefile-install-rule    etc/mateconf/schemas/desktop_mate_peripherals_mouse.schemas >/dev/null 2>&1
MATECONF_CONFIG_SOURCE="xml::etc/mateconf/mateconf.xml.defaults"    usr/bin/mateconftool-2 --makefile-install-rule    etc/mateconf/schemas/desktop_mate_sound.schemas >/dev/null 2>&1
MATECONF_CONFIG_SOURCE="xml::etc/mateconf/mateconf.xml.defaults"    usr/bin/mateconftool-2 --makefile-install-rule    etc/mateconf/schemas/desktop_mate_thumbnail_cache.schemas >/dev/null 2>&1
MATECONF_CONFIG_SOURCE="xml::etc/mateconf/mateconf.xml.defaults"    usr/bin/mateconftool-2 --makefile-install-rule    etc/mateconf/schemas/desktop_mate_thumbnailers.schemas >/dev/null 2>&1
MATECONF_CONFIG_SOURCE="xml::etc/mateconf/mateconf.xml.defaults"    usr/bin/mateconftool-2 --makefile-install-rule    etc/mateconf/schemas/desktop_mate_typing_break.schemas >/dev/null 2>&1
fi
# update rarian database
if [ -x usr/bin/rarian-sk-update ]; then
  usr/bin/rarian-sk-update 1> /dev/null 2> /dev/null
fi

# update mime database
if [ -x usr/bin/update-mime-database ]; then
  usr/bin/update-mime-database usr/share/mime 1> /dev/null 2> /dev/null
fi

# update desktop entries
if [ -x usr/bin/update-desktop-database ]; then
  usr/bin/update-desktop-database 1> /dev/null 2> /dev/null
fi

# update hicolor icons
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
	rm -f usr/share/icons/hicolor/icon-theme.cache
fi
usr/bin/gtk-update-icon-cache -f -q usr/share/icons/hicolor 1>/dev/null 2>/dev/null

if [ -x /usr/bin/glib-compile-schemas ]; then
  /usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas/ >/dev/null 2>&1
fi

# Restart gconfd-2 if running to reload new gconf settings
if ps acx | grep -q gconfd-2 ; then
        killall -HUP gconfd-2 ;
fi

# A good idea whenever kernel modules are added or changed:
if [ -x sbin/depmod ]; then
  /sbin/depmod -a 1> /dev/null 2> /dev/null
fi

( cd usr/lib ; rm -rf libmate-2.so )
( cd usr/lib ; ln -sf libmate-2.so.0.400.0 libmate-2.so )
( cd usr/lib ; rm -rf libmate-2.so.0 )
( cd usr/lib ; ln -sf libmate-2.so.0.400.0 libmate-2.so.0 )
