# 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/share/doc/HTML/en/kioslave/audiocd ; rm -rf common )
( cd usr/share/doc/HTML/en/kioslave/audiocd ; ln -sf /usr/share/doc/HTML/en/common common )
( cd usr/share/doc/HTML/en/kmix ; rm -rf common )
( cd usr/share/doc/HTML/en/kmix ; ln -sf /usr/share/doc/HTML/en/common common )
( cd usr/share/doc/HTML/en/juk ; rm -rf common )
( cd usr/share/doc/HTML/en/juk ; ln -sf /usr/share/doc/HTML/en/common common )
( cd usr/share/doc/HTML/en/kcontrol/cddbretrieval ; rm -rf common )
( cd usr/share/doc/HTML/en/kcontrol/cddbretrieval ; ln -sf /usr/share/doc/HTML/en/common common )
( cd usr/share/doc/HTML/en/dragonplayer ; rm -rf common )
( cd usr/share/doc/HTML/en/dragonplayer ; ln -sf /usr/share/doc/HTML/en//common common )
( cd usr/lib ; rm -rf libaudiocdplugins.so )
( cd usr/lib ; ln -sf libaudiocdplugins.so.4 libaudiocdplugins.so )
( cd usr/lib ; rm -rf libkcompactdisc.so )
( cd usr/lib ; ln -sf libkcompactdisc.so.4 libkcompactdisc.so )
( cd usr/lib ; rm -rf libaudiocdplugins.so.4 )
( cd usr/lib ; ln -sf libaudiocdplugins.so.4.8.0 libaudiocdplugins.so.4 )
( cd usr/lib ; rm -rf libkcddb.so.4 )
( cd usr/lib ; ln -sf libkcddb.so.4.8.0 libkcddb.so.4 )
( cd usr/lib ; rm -rf libkcddb.so )
( cd usr/lib ; ln -sf libkcddb.so.4 libkcddb.so )
( cd usr/lib ; rm -rf libkcompactdisc.so.4 )
( cd usr/lib ; ln -sf libkcompactdisc.so.4.8.0 libkcompactdisc.so.4 )
