postinst is in libgtk2.0-0 2.24.30-1ubuntu1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #!/bin/sh
set -e
IMMODULES_DIR=/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules
IMMODULES_DIR_OLD=/usr/lib/gtk-2.0/2.10.0/immodules
if [ "$1" = triggered ]; then
# This is triggered everytime an application installs a
# GTK immodule loader
/usr/lib/x86_64-linux-gnu/libgtk2.0-0/gtk-query-immodules-2.0 --update-cache || true
exit 0
fi
# Also handle the initial installation
if [ -d $IMMODULES_DIR ] || [ -d $IMMODULES_DIR_OLD ]; then
/usr/lib/x86_64-linux-gnu/libgtk2.0-0/gtk-query-immodules-2.0 --update-cache || true
fi
|