#!/bin/sh -e
set -e

#DEBHELPER#

ICONPATH="/usr/share/icons/hicolor"

# Get OSSO environment variables (launchers, dbus bus, etc)
if [ -f /etc/osso-af-init/af-defines.sh ]; then
  source /etc/osso-af-init/af-defines.sh
fi

dbus-send --type=method_call --dest=org.freedesktop.Notifications \
    /org/freedesktop/Notifications \
    org.freedesktop.Notifications.SystemNoteInfoprint \
    string:"Updating icons ..."

gtk-update-icon-cache -f ${ICONPATH}

exit 0
