#!/bin/sh
set -e

# Refresh icon cache and desktop database so the menu entry appears immediately.
if [ -x /usr/bin/update-desktop-database ]; then
    update-desktop-database -q /usr/share/applications || true
fi

if [ -x /usr/bin/gtk-update-icon-cache ]; then
    gtk-update-icon-cache -q -f -t /usr/share/icons/hicolor || true
fi

exit 0
