#!/bin/sh -e

# The clock might be wrong and we know that we need to update the icon
# cache so we just force it.

gtk-update-icon-cache -f /usr/share/icons/hicolor

# Update the mime databases
update-mime-database /usr/share/mime
update-desktop-database

mkdir -p /home/user/MyDocs/.documents/trips
# Now we are ready to let the user move the entry around, but only if
# this is a new install
chown -R user:users /home/user/MyDocs/.documents/trips
oldversion="$2"
if [ -z "$oldversion" ]; then
  maemo-select-menu-location roadmap.desktop
  maemo-select-menu-location roadgps.desktop
  maemo-select-menu-location getmaps.desktop
fi

#DEBHELPER#

exit 0
