if [ -x /usr/bin/update-desktop-database ]; then
  /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi

if [ -x /usr/bin/update-mime-database ]; then
  /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
fi
( cd usr/include ; rm -rf libfm )
( cd usr/include ; ln -sf libfm-1.0 libfm )
( cd usr/lib ; rm -rf libfm-gtk3.so )
( cd usr/lib ; ln -sf libfm-gtk3.so.4.1.3 libfm-gtk3.so )
( cd usr/lib ; rm -rf libfm-gtk3.so.4 )
( cd usr/lib ; ln -sf libfm-gtk3.so.4.1.3 libfm-gtk3.so.4 )
( cd usr/lib ; rm -rf libfm.so )
( cd usr/lib ; ln -sf libfm.so.4.1.3 libfm.so )
( cd usr/lib ; rm -rf libfm.so.4 )
( cd usr/lib ; ln -sf libfm.so.4.1.3 libfm.so.4 )
