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

if [ -x /usr/bin/update-desktop-database ]; then
  /usr/bin/update-desktop-database &> /dev/null
fi

if [ -x /usr/bin/gtk-update-icon-cache ]; then
  /usr/bin/gtk-update-icon-cache  -f -q /usr/share/icons/hicolor &> /dev/null
fi
	# Update the scrollkeeper database (Remove stale pieces)
	if [ -x usr/bin/scrollkeeper-update ]; then
		usr/bin/scrollkeeper-update > /dev/null 2>&1
	fi
#
( cd usr/share/gnome/help/gnome-volume-control/oc/figures ; rm -rf gnome-volume-control_window.png )
( cd usr/share/gnome/help/gnome-volume-control/oc/figures ; ln -sf ../../C/figures/gnome-volume-control_window.png gnome-volume-control_window.png )
( cd usr/share/gnome/help/gnome-volume-control/en_GB/figures ; rm -rf gnome-volume-control_window.png )
( cd usr/share/gnome/help/gnome-volume-control/en_GB/figures ; ln -sf ../../C/figures/gnome-volume-control_window.png gnome-volume-control_window.png )
( cd usr/share/gnome/help/gnome-volume-control/cs/figures ; rm -rf gnome-volume-control_window.png )
( cd usr/share/gnome/help/gnome-volume-control/cs/figures ; ln -sf ../../C/figures/gnome-volume-control_window.png gnome-volume-control_window.png )
( cd usr/share/gnome/help/gnome-volume-control/ru/figures ; rm -rf gnome-volume-control_window.png )
( cd usr/share/gnome/help/gnome-volume-control/ru/figures ; ln -sf ../../C/figures/gnome-volume-control_window.png gnome-volume-control_window.png )
( cd usr/share/gnome/help/gnome-volume-control/el/figures ; rm -rf gnome-volume-control_window.png )
( cd usr/share/gnome/help/gnome-volume-control/el/figures ; ln -sf ../../C/figures/gnome-volume-control_window.png gnome-volume-control_window.png )
( cd usr/share/gnome/help/gnome-volume-control/zh_CN/figures ; rm -rf gnome-volume-control_window.png )
( cd usr/share/gnome/help/gnome-volume-control/zh_CN/figures ; ln -sf ../../C/figures/gnome-volume-control_window.png gnome-volume-control_window.png )
( cd usr/share/gnome/help/gnome-sound-recorder/oc/figures ; rm -rf grecord_window.png )
( cd usr/share/gnome/help/gnome-sound-recorder/oc/figures ; ln -sf ../../C/figures/grecord_window.png grecord_window.png )
( cd usr/share/gnome/help/gnome-sound-recorder/en_GB/figures ; rm -rf grecord_window.png )
( cd usr/share/gnome/help/gnome-sound-recorder/en_GB/figures ; ln -sf ../../C/figures/grecord_window.png grecord_window.png )
( cd usr/share/gnome/help/gnome-sound-recorder/ru/figures ; rm -rf grecord_window.png )
( cd usr/share/gnome/help/gnome-sound-recorder/ru/figures ; ln -sf ../../C/figures/grecord_window.png grecord_window.png )
( cd usr/share/gnome/help/gnome-sound-recorder/zh_CN/figures ; rm -rf grecord_window.png )
( cd usr/share/gnome/help/gnome-sound-recorder/zh_CN/figures ; ln -sf ../../C/figures/grecord_window.png grecord_window.png )
( cd usr/share/gnome/help/gstreamer-properties/oc/figures ; rm -rf gstreamer_properties_window.png )
( cd usr/share/gnome/help/gstreamer-properties/oc/figures ; ln -sf ../../C/figures/gstreamer_properties_window.png gstreamer_properties_window.png )
( cd usr/share/gnome/help/gstreamer-properties/en_GB/figures ; rm -rf gstreamer_properties_window.png )
( cd usr/share/gnome/help/gstreamer-properties/en_GB/figures ; ln -sf ../../C/figures/gstreamer_properties_window.png gstreamer_properties_window.png )
( cd usr/share/gnome/help/gstreamer-properties/pt_BR/figures ; rm -rf gstreamer_properties_window.png )
( cd usr/share/gnome/help/gstreamer-properties/pt_BR/figures ; ln -sf ../../C/figures/gstreamer_properties_window.png gstreamer_properties_window.png )
( cd usr/share/gnome/help/gstreamer-properties/ru/figures ; rm -rf gstreamer_properties_window.png )
( cd usr/share/gnome/help/gstreamer-properties/ru/figures ; ln -sf ../../C/figures/gstreamer_properties_window.png gstreamer_properties_window.png )
( cd usr/share/gnome/help/gstreamer-properties/el/figures ; rm -rf gstreamer_properties_window.png )
( cd usr/share/gnome/help/gstreamer-properties/el/figures ; ln -sf ../../C/figures/gstreamer_properties_window.png gstreamer_properties_window.png )
( cd usr/share/gnome/help/gstreamer-properties/zh_CN/figures ; rm -rf gstreamer_properties_window.png )
( cd usr/share/gnome/help/gstreamer-properties/zh_CN/figures ; ln -sf ../../C/figures/gstreamer_properties_window.png gstreamer_properties_window.png )
( cd usr/lib ; rm -rf libgnome-media-profiles.so )
( cd usr/lib ; ln -sf libgnome-media-profiles.so.0.0.0 libgnome-media-profiles.so )
( cd usr/lib ; rm -rf libgnome-media-profiles.so.0 )
( cd usr/lib ; ln -sf libgnome-media-profiles.so.0.0.0 libgnome-media-profiles.so.0 )
