if [ -x /usr/bin/update-desktop-database ]; then
  /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
( cd usr/bin ; rm -rf gisto )
( cd usr/bin ; ln -sf /opt/gisto/gisto gisto )
( cd usr/share/applications ; rm -rf gisto.desktop )
( cd usr/share/applications ; ln -sf /opt/gisto/share/applications/gisto.desktop gisto.desktop )
( cd usr/share/menu ; rm -rf gisto )
( cd usr/share/menu ; ln -sf /opt/gisto/share/menu/gisto gisto )
