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