function post_install() {
#!/bin/sh
# The menus and docks pick up the new entry, its icon and the mitra:// handler.
command -v update-desktop-database >/dev/null 2>&1 && update-desktop-database -q /usr/share/applications || true
command -v gtk-update-icon-cache >/dev/null 2>&1 && gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor || true
exit 0

}

function post_remove() {
#!/bin/sh
# Account and settings stay in the user's home (~/.local/share/Mitra), as on the other platforms.
command -v update-desktop-database >/dev/null 2>&1 && update-desktop-database -q /usr/share/applications || true
command -v gtk-update-icon-cache >/dev/null 2>&1 && gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor || true
exit 0

}

