fix: refresh desktop integration on updates

This commit is contained in:
2026-07-14 22:04:25 +08:00
parent 963049add3
commit dbef71f830
7 changed files with 36 additions and 3 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
set -eu
if command -v update-desktop-database >/dev/null 2>&1; then
update-desktop-database -q /usr/share/applications || 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