( cd opt/komodo-ide/bin ; rm -rf komodo )
( cd opt/komodo-ide/bin ; ln -sf ../lib/mozilla/komodo komodo )
( cd opt/komodo-ide/lib/mozilla ; rm -rf libpython2.7.so )
( cd opt/komodo-ide/lib/mozilla ; ln -sf ../python/lib/libpython2.7.so.1.0 libpython2.7.so )
( cd opt/komodo-ide/lib/mozilla ; rm -rf libpython2.7.so.1.0 )
( cd opt/komodo-ide/lib/mozilla ; ln -sf ../python/lib/libpython2.7.so.1.0 libpython2.7.so.1.0 )
( cd opt/komodo-ide/lib/python/lib ; rm -rf libpython2.7.so )
( cd opt/komodo-ide/lib/python/lib ; ln -sf libpython2.7.so.1.0 libpython2.7.so )

( cd usr/bin; ln -sf /opt/komodo-ide/bin/komodo komodo-ide )
( cd usr/share/applications; ln -sf /opt/komodo-ide/share/desktop/komodo-ide-*.desktop komodo-ide.desktop )

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