summaryrefslogtreecommitdiff
path: root/build-aux/meson/post-install.sh
blob: c7390fae9b14d879c8e1393d3adb82529f56944b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

gtk_api_version=$1
gtk_abi_version=$2
gtk_libdir=$3
gtk_datadir=$4

# Package managers set this so we don't need to run
if [ -z "$DESTDIR" ]; then
  echo Compiling GSettings schemas...
  glib-compile-schemas ${gtk_datadir}/glib-2.0/schemas

  echo Updating desktop database...
  update-desktop-database -q ${gtk_datadir}/applications

  echo Updating icon cache...
  gtk-update-icon-cache -q -t -f ${gtk_datadir}/icons/hicolor

  echo Updating input method modules cache...
  gtk4-query-immodules > ${gtk_libdir}/gtk-${gtk_api_version}/${gtk_abi_version}/immodules.cache
fi