#!/bin/sh

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

# Ask user where to place conler's shortcut
oldversion="$2"
if [ -z "$oldversion" ]; then 
    /usr/bin/maemo-select-menu-location conler.desktop

    # Case: ~/.config has been created by the package (it didn't exist before)
    chown user:users /home/user/.config
else
    /usr/bin/conler-gui -support-notify-major-changes | /bin/grep true 1>/dev/null
    if [ 0 -eq $? ]; then
	/usr/bin/conler-run-wrapper.sh "/usr/bin/conler-gui -notify-major-changes"
    fi
fi

#DEBHELPER#

exit 0
