#!/bin/sh
set -e

if [ "$1" = "configure" ]; then
    if which gtk-update-icon-cache >/dev/null 2>&1 ; then
        gtk-update-icon-cache -q -t -f /usr/share/icons/Flat-Remix-Green-Dark || true
    fi

    if which kbuildsycoca6 >/dev/null 2>&1 ; then
        kbuildsycoca6 --noincremental || true
    fi

    update-alternatives --install /usr/share/images/desktop-base/desktop-background \
        desktop-background /usr/share/desktop-base/echo-themes/wallpaper.png 50
fi

#DEBHELPER#
