termux-packages/x11-packages/desktop-file-utils/hooks/postrm.in
2022-04-18 14:08:28 +05:30

11 lines
276 B
Bash

#!@TERMUX_PREFIX@/bin/sh
if [ "${1}" = "remove" ]; 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