Files
filmcraft/packaging/linux/postinst.sh
T
FredApps d4c9f6c17c Restore packaging script executable bits and drop the unrelated .gitignore entry
The branch had changed nine packaging scripts from 100755 to 100644 (FredApps' review) and added an .andromity/ ignore line unrelated to this PR.
2026-11-05 04:34:05 +01:00

14 lines
510 B
Bash
Executable File

#!/bin/sh
# deb/rpm post-install and post-remove: refresh the desktop, MIME and icon caches.
# Every tool is optional; missing ones are skipped.
if command -v update-desktop-database >/dev/null 2>&1; then
update-desktop-database -q /usr/share/applications || true
fi
if command -v update-mime-database >/dev/null 2>&1; then
update-mime-database /usr/share/mime || true
fi
if command -v gtk-update-icon-cache >/dev/null 2>&1; then
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor || true
fi
exit 0