0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-06-05 09:21:20 +00:00
Files
Maxython 084fae3d2a chore(x11/desktop-file-utils): use prerm instead of postrm
Additional: include postinst script for pacman to update desktop MINE cache after installing or updating a package.
2025-04-28 23:39:06 +03:00

11 lines
322 B
Bash

#!@TERMUX_PREFIX@/bin/bash
if [[ "${1}" = "remove" || "@TERMUX_PACKAGE_FORMAT@" = "pacman" ]]; then
if [[ -d "@TERMUX_PREFIX@/share/applications" ]]; then
rm -f "@TERMUX_PREFIX@/share/applications/mimeinfo.cache"
rmdir --ignore-fail-on-non-empty "@TERMUX_PREFIX@/share/applications"
fi
fi
exit 0