#!/bin/bash # Post-install script for Linuxy post_install() { # Update desktop database if command -v update-desktop-database &> /dev/null; then update-desktop-database /usr/share/applications 2>/dev/null || true fi # Update icon cache if command -v gtk-update-icon-cache &> /dev/null; then for size in 32x32 128x128 256x256 512x512; do gtk-update-icon-cache -f -t /usr/share/icons/hicolor/$size 2>/dev/null || true done fi } # Post-remove script post_remove() { # Update desktop database if command -v update-desktop-database &> /dev/null; then update-desktop-database /usr/share/applications 2>/dev/null || true fi # Update icon cache if command -v gtk-update-icon-cache &> /dev/null; then for size in 32x32 128x128 256x256 512x512; do gtk-update-icon-cache -f -t /usr/share/icons/hicolor/$size 2>/dev/null || true done fi } post_upgrade() { post_install }