1 2 3 4 5 6 7 8 9 10 11 12 13 14
post_install() { echo -n "updating gtk immodules... " [ -x /usr/bin/gtk-query-immodules-2.0 ] && /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules [ -x /usr/bin/gtk-query-immodules-3.0 ] && /usr/bin/gtk-query-immodules-3.0 > /usr/lib/gtk-3.0/3.0.0/immodules.cache echo "done." } post_upgrade() { post_install } post_remove() { post_install }