summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2018-03-06 19:10:48 -0500
committerMatthias Clasen <mclasen@redhat.com>2018-03-06 20:54:26 -0500
commitcc6d60afa436693ad9026eff7182b3b3ac9277ae (patch)
tree2fa032c9c20328041491ecadf18327cd6d061d17 /build-aux
parent5ec41fb47b1c9eaf0ae61ed93deabd7b16ad87a6 (diff)
downloadgtk+-cc6d60afa436693ad9026eff7182b3b3ac9277ae.tar.gz
Use gio-querymodules
GIO has this facility, so we should use it. At the same time, make sure the immodules directory exists, even if we don't install any modules there outselves.
Diffstat (limited to 'build-aux')
-rwxr-xr-xbuild-aux/meson/post-install.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/build-aux/meson/post-install.sh b/build-aux/meson/post-install.sh
index ae0665290b..0d18b13d76 100755
--- a/build-aux/meson/post-install.sh
+++ b/build-aux/meson/post-install.sh
@@ -15,4 +15,12 @@ if [ -z "$DESTDIR" ]; then
echo Updating icon cache...
gtk-update-icon-cache -q -t -f ${gtk_datadir}/icons/hicolor
+
+ echo Updating module cache for print backends...
+ mkdir -p ${gtk_libdir}/gtk-4.0/4.0.0/printbackends
+ gio-querymodules ${gtk_libdir}/gtk-4.0/4.0.0/printbackends
+
+ echo Updating module cache for input methods...
+ mkdir -p ${gtk_libdir}/gtk-4.0/4.0.0/immodules
+ gio-querymodules ${gtk_libdir}/gtk-4.0/4.0.0/immodules
fi