BlueGit

ict rusty-teams

Files

rusty-teams / packaging / linux / postinst.sh

postinst.sh

feat(packaging): Linux AppImage, deb, rpm and Flatpak
metis Samuel David Merlin Kemper · pushed by metis · 2 weeks ago
228f36c5 History
postinst.sh 397 B Download Raw
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.
4if command -v update-desktop-database >/dev/null 2>&1; then
5 update-desktop-database -q /usr/share/applications || true
6fi
7if command -v gtk-update-icon-cache >/dev/null 2>&1; then
8 gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor || true
9fi
10exit 0