# 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

( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.swf )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.swf )
( cd usr/lib64/evas/utils ; rm -rf evas_generic_pdf_loader.ods )
( cd usr/lib64/evas/utils ; ln -sf evas_generic_pdf_loader.libreoffice evas_generic_pdf_loader.ods )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.m2v )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.m2v )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.pef )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.raw evas_image_loader.pef )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.rmx )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.rmx )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.wmv )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.wmv )
( cd usr/lib64/evas/utils ; rm -rf evas_generic_pdf_loader.odp )
( cd usr/lib64/evas/utils ; ln -sf evas_generic_pdf_loader.libreoffice evas_generic_pdf_loader.odp )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.mpl )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.mpl )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.m1v )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.m1v )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.rmvb )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.rmvb )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.mp2ts )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.mp2ts )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.dv )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.dv )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.sr2 )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.raw evas_image_loader.sr2 )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.doc )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.pdf evas_image_loader.doc )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.mov )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.mov )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.mrw )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.raw evas_image_loader.mrw )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.mpe )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.mpe )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.nut )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.nut )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.flv )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.flv )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.x3f )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.raw evas_image_loader.x3f )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.bdmv )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.bdmv )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.cpi )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.cpi )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.rmj )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.rmj )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.kdc )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.raw evas_image_loader.kdc )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.raf )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.raw evas_image_loader.raf )
( cd usr/lib64/evas/utils ; rm -rf evas_generic_pdf_loader.rtf )
( cd usr/lib64/evas/utils ; ln -sf evas_generic_pdf_loader.libreoffice evas_generic_pdf_loader.rtf )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.mp2 )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.mp2 )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.crw )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.raw evas_image_loader.crw )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.mpg )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.mpg )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.fla )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.fla )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.bdm )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.bdm )
( cd usr/lib64/evas/utils ; rm -rf evas_generic_pdf_loader.xls )
( cd usr/lib64/evas/utils ; ln -sf evas_generic_pdf_loader.libreoffice evas_generic_pdf_loader.xls )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.asf )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.asf )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.svg.gz )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.svg evas_image_loader.svg.gz )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.3g2 )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.3g2 )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.k25 )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.raw evas_image_loader.k25 )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.odt )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.pdf evas_image_loader.odt )
( cd usr/lib64/evas/utils ; rm -rf evas_generic_pdf_loader.doc )
( cd usr/lib64/evas/utils ; ln -sf evas_generic_pdf_loader.libreoffice evas_generic_pdf_loader.doc )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.ogv )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.ogv )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.nrf )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.raw evas_image_loader.nrf )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.rm )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.rm )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.xcf.gz )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.xcf evas_image_loader.xcf.gz )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.rtf )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.pdf evas_image_loader.rtf )
( cd usr/lib64/evas/utils ; rm -rf evas_generic_pdf_loader.xlsx )
( cd usr/lib64/evas/utils ; ln -sf evas_generic_pdf_loader.libreoffice evas_generic_pdf_loader.xlsx )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.rw2 )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.raw evas_image_loader.rw2 )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.docx )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.pdf evas_image_loader.docx )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.dng )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.raw evas_image_loader.dng )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.mts )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.mts )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.mxf )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.mxf )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.ogg )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.ogg )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.cr2 )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.raw evas_image_loader.cr2 )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.pptx )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.pdf evas_image_loader.pptx )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.3gp2 )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.3gp2 )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.nef )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.raw evas_image_loader.nef )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.rv )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.rv )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.264 )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.264 )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.webm )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.webm )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.m4v )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.m4v )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.nrw )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.raw evas_image_loader.nrw )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.3p2 )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.3p2 )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.ods )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.pdf evas_image_loader.ods )
( cd usr/lib64/evas/utils ; rm -rf evas_generic_pdf_loader.docx )
( cd usr/lib64/evas/utils ; ln -sf evas_generic_pdf_loader.libreoffice evas_generic_pdf_loader.docx )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.3gpp )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.3gpp )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.nuv )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.nuv )
( cd usr/lib64/evas/utils ; rm -rf evas_generic_pdf_loader.odt )
( cd usr/lib64/evas/utils ; ln -sf evas_generic_pdf_loader.libreoffice evas_generic_pdf_loader.odt )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.3gp )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.3gp )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.ogm )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.ogm )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.xls )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.pdf evas_image_loader.xls )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.arw )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.raw evas_image_loader.arw )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.svgz )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.svg evas_image_loader.svgz )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.orf )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.raw evas_image_loader.orf )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.rmm )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.rmm )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.dcr )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.raw evas_image_loader.dcr )
( cd usr/lib64/evas/utils ; rm -rf evas_generic_pdf_loader.ppt )
( cd usr/lib64/evas/utils ; ln -sf evas_generic_pdf_loader.libreoffice evas_generic_pdf_loader.ppt )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.erf )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.raw evas_image_loader.erf )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.mp4 )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.mp4 )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.mkv )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.mkv )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.weba )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.weba )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.rms )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.rms )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.ts )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.ts )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.m2t )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.m2t )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.3gpp2 )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.3gpp2 )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.mpeg )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.mpeg )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.srf )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.raw evas_image_loader.srf )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.odp )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.pdf evas_image_loader.odp )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.xlsx )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.pdf evas_image_loader.xlsx )
( cd usr/lib64/evas/utils ; rm -rf evas_generic_pdf_loader.pptx )
( cd usr/lib64/evas/utils ; ln -sf evas_generic_pdf_loader.libreoffice evas_generic_pdf_loader.pptx )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.avi )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.avi )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.ppt )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.pdf evas_image_loader.ppt )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.qt )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.qt )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.clpi )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.clpi )
( cd usr/lib64/evas/utils ; rm -rf evas_image_loader.mpls )
( cd usr/lib64/evas/utils ; ln -sf evas_image_loader.gst evas_image_loader.mpls )
