diff options
Diffstat (limited to 'scripts/postinst-intercepts')
-rw-r--r-- | scripts/postinst-intercepts/update_gtk_immodules_cache | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/postinst-intercepts/update_gtk_immodules_cache b/scripts/postinst-intercepts/update_gtk_immodules_cache new file mode 100644 index 0000000000..e2b9ff7438 --- /dev/null +++ b/scripts/postinst-intercepts/update_gtk_immodules_cache | |||
@@ -0,0 +1,18 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | set -e | ||
4 | |||
5 | if [ -x $D${bindir}/gtk-query-immodules-2.0 ]; then | ||
6 | PSEUDO_UNLOAD=1 qemuwrapper -L $D -E LD_LIBRARY_PATH=$D${libdir}:$D${base_libdir} \ | ||
7 | $D/${bindir}/gtk-query-immodules-2.0 \ | ||
8 | > $D${libdir}/gtk-2.0/2.10.0/immodules.cache && | ||
9 | sed -i -e "s:$D::" $D${libdir}/gtk-2.0/2.10.0/immodules.cache | ||
10 | chown root:root $D${libdir}/gtk-2.0/2.10.0/immodules.cache | ||
11 | fi | ||
12 | if [ -x $D${bindir}/gtk-query-immodules-3.0 ]; then | ||
13 | PSEUDO_UNLOAD=1 qemuwrapper -L $D -E LD_LIBRARY_PATH=$D${libdir}:$D${base_libdir} \ | ||
14 | $D/${bindir}/gtk-query-immodules-3.0 \ | ||
15 | > $D${libdir}/gtk-3.0/3.0.0/immodules.cache && | ||
16 | sed -i -e "s:$D::" $D${libdir}/gtk-3.0/3.0.0/immodules.cache | ||
17 | chown root:root $D${libdir}/gtk-3.0/3.0.0/immodules.cache | ||
18 | fi | ||