termux-packages/x11-packages/gtk2/hooks/postinst.in

15 lines
430 B
Bash

#!@TERMUX_PREFIX@/bin/sh
gtk-query-immodules-2.0 --update-cache
for i in $(find "@TERMUX_PREFIX@/share/icons" -type f -iname index.theme); do
gtk-update-icon-cache --force --quiet $(dirname "${i}")
done
unset i
## Usually, glib and gdk-pixbuf should have own triggers
## but in Termux they don't have.
glib-compile-schemas "@TERMUX_PREFIX@/share/glib-2.0/schemas" > /dev/null
gdk-pixbuf-query-loaders --update-cache
exit 0