# 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/lib64 ; rm -rf libplasmaweather.so )
( cd usr/lib64 ; ln -sf libplasmaweather.so.4 libplasmaweather.so )
( cd usr/lib64 ; rm -rf libplasma_groupingcontainment.so )
( cd usr/lib64 ; ln -sf libplasma_groupingcontainment.so.4 libplasma_groupingcontainment.so )
( cd usr/lib64 ; rm -rf libplasmapotdprovidercore.so )
( cd usr/lib64 ; ln -sf libplasmapotdprovidercore.so.1 libplasmapotdprovidercore.so )
( cd usr/lib64 ; rm -rf libplasmaweather.so.4 )
( cd usr/lib64 ; ln -sf libplasmaweather.so.4.12.4 libplasmaweather.so.4 )
( cd usr/lib64 ; rm -rf liblancelot-datamodels.so )
( cd usr/lib64 ; ln -sf liblancelot-datamodels.so.1 liblancelot-datamodels.so )
( cd usr/lib64 ; rm -rf liblancelot.so.2 )
( cd usr/lib64 ; ln -sf liblancelot.so.1.9.0 liblancelot.so.2 )
( cd usr/lib64 ; rm -rf librtm.so.4 )
( cd usr/lib64 ; ln -sf librtm.so.4.12.4 librtm.so.4 )
( cd usr/lib64 ; rm -rf liblancelot-datamodels.so.1 )
( cd usr/lib64 ; ln -sf liblancelot-datamodels.so.1.7.0 liblancelot-datamodels.so.1 )
( cd usr/lib64 ; rm -rf libplasmapotdprovidercore.so.1 )
( cd usr/lib64 ; ln -sf libplasmapotdprovidercore.so.1.0.0 libplasmapotdprovidercore.so.1 )
( cd usr/lib64 ; rm -rf libplasmacomicprovidercore.so )
( cd usr/lib64 ; ln -sf libplasmacomicprovidercore.so.1 libplasmacomicprovidercore.so )
( cd usr/lib64 ; rm -rf libplasmacomicprovidercore.so.1 )
( cd usr/lib64 ; ln -sf libplasmacomicprovidercore.so.1.0.0 libplasmacomicprovidercore.so.1 )
( cd usr/lib64 ; rm -rf libplasma_groupingcontainment.so.4 )
( cd usr/lib64 ; ln -sf libplasma_groupingcontainment.so.4.12.4 libplasma_groupingcontainment.so.4 )
( cd usr/lib64 ; rm -rf liblancelot.so )
( cd usr/lib64 ; ln -sf liblancelot.so.2 liblancelot.so )
( cd usr/lib64 ; rm -rf librtm.so )
( cd usr/lib64 ; ln -sf librtm.so.4 librtm.so )
