termux-packages/x11-packages/libgtk3/postinst

19 lines
543 B
Plaintext
Raw Normal View History

2018-09-10 00:42:26 +02:00
#!/data/data/com.termux/files/usr/bin/sh
set -e
PREFIX="/data/data/com.termux/files/usr"
gtk-query-immodules-3.0 --update-cache || true
for i in $(find "${PREFIX}/share/icons" -type f -iname index.theme); do
gtk-update-icon-cache --force --quiet $(dirname "${i}") || true
done
unset i
## Usually, glib and gdk-pixbuf should have own triggers
## but in Termux they don't have.
glib-compile-schemas "${PREFIX}/share/glib-2.0/schemas" || true
gdk-pixbuf-query-loaders --update-cache || true
if [ "${1}" = "triggered" ]; then
exit 0
fi