# 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

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

( cd usr/lib/mono/GData-Sharp ; rm -rf Google.GData.Blogger.dll )
( cd usr/lib/mono/GData-Sharp ; ln -sf ../gac/Google.GData.Blogger/1.7.0.31949__6f8943d33947d761/Google.GData.Blogger.dll Google.GData.Blogger.dll )
( cd usr/lib/mono/GData-Sharp ; rm -rf Google.GData.AccessControl.dll )
( cd usr/lib/mono/GData-Sharp ; ln -sf ../gac/Google.GData.AccessControl/1.7.0.31945__b4b8eb9a7afc8328/Google.GData.AccessControl.dll Google.GData.AccessControl.dll )
( cd usr/lib/mono/GData-Sharp ; rm -rf Google.GData.CodeSearch.dll )
( cd usr/lib/mono/GData-Sharp ; ln -sf ../gac/Google.GData.CodeSearch/1.7.0.31946__cac30bb7c678972d/Google.GData.CodeSearch.dll Google.GData.CodeSearch.dll )
( cd usr/lib/mono/GData-Sharp ; rm -rf Google.GData.Health.dll )
( cd usr/lib/mono/GData-Sharp ; ln -sf ../gac/Google.GData.Health/1.7.0.31949__7dc2246c3cef9211/Google.GData.Health.dll Google.GData.Health.dll )
( cd usr/lib/mono/GData-Sharp ; rm -rf Google.GData.Extensions.dll )
( cd usr/lib/mono/GData-Sharp ; ln -sf ../gac/Google.GData.Extensions/1.7.0.31945__0b4c5df2ebf20876/Google.GData.Extensions.dll Google.GData.Extensions.dll )
( cd usr/lib/mono/GData-Sharp ; rm -rf Google.GData.Photos.dll )
( cd usr/lib/mono/GData-Sharp ; ln -sf ../gac/Google.GData.Photos/1.7.0.31948__a25b50f2e8e3887a/Google.GData.Photos.dll Google.GData.Photos.dll )
( cd usr/lib/mono/GData-Sharp ; rm -rf Google.GData.Apps.dll )
( cd usr/lib/mono/GData-Sharp ; ln -sf ../gac/Google.GData.Apps/1.7.0.31947__e6feebfe441b89cb/Google.GData.Apps.dll Google.GData.Apps.dll )
( cd usr/lib/mono/GData-Sharp ; rm -rf Google.GData.Contacts.dll )
( cd usr/lib/mono/GData-Sharp ; ln -sf ../gac/Google.GData.Contacts/1.7.0.31948__7e065189dd4b982f/Google.GData.Contacts.dll Google.GData.Contacts.dll )
( cd usr/lib/mono/GData-Sharp ; rm -rf Google.GData.Documents.dll )
( cd usr/lib/mono/GData-Sharp ; ln -sf ../gac/Google.GData.Documents/1.7.0.31948__e4daaad656f19bb9/Google.GData.Documents.dll Google.GData.Documents.dll )
( cd usr/lib/mono/GData-Sharp ; rm -rf Google.GData.YouTube.dll )
( cd usr/lib/mono/GData-Sharp ; ln -sf ../gac/Google.GData.YouTube/1.7.0.31949__af04a32718ae8833/Google.GData.YouTube.dll Google.GData.YouTube.dll )
( cd usr/lib/mono/GData-Sharp ; rm -rf Google.GData.GoogleBase.dll )
( cd usr/lib/mono/GData-Sharp ; ln -sf ../gac/Google.GData.GoogleBase/1.7.0.31946__b361faa2ad5bd3db/Google.GData.GoogleBase.dll Google.GData.GoogleBase.dll )
( cd usr/lib/mono/GData-Sharp ; rm -rf Google.GData.Calendar.dll )
( cd usr/lib/mono/GData-Sharp ; ln -sf ../gac/Google.GData.Calendar/1.7.0.31946__aa6748391206b888/Google.GData.Calendar.dll Google.GData.Calendar.dll )
( cd usr/lib/mono/GData-Sharp ; rm -rf Google.GData.Spreadsheets.dll )
( cd usr/lib/mono/GData-Sharp ; ln -sf ../gac/Google.GData.Spreadsheets/1.7.0.31947__3f77feb76ff0d9a1/Google.GData.Spreadsheets.dll Google.GData.Spreadsheets.dll )
( cd usr/lib/mono/GData-Sharp ; rm -rf Google.GData.Client.dll )
( cd usr/lib/mono/GData-Sharp ; ln -sf ../gac/Google.GData.Client/1.7.0.31945__04a59ca9b0273830/Google.GData.Client.dll Google.GData.Client.dll )
( cd usr/lib/mono/GData-Sharp ; rm -rf Google.GData.Analytics.dll )
( cd usr/lib/mono/GData-Sharp ; ln -sf ../gac/Google.GData.Analytics/1.7.0.31950__9e229226d7996434/Google.GData.Analytics.dll Google.GData.Analytics.dll )
