summaryrefslogtreecommitdiff
path: root/build-aux/meson/postinstall.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux/meson/postinstall.sh')
-rwxr-xr-xbuild-aux/meson/postinstall.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/build-aux/meson/postinstall.sh b/build-aux/meson/postinstall.sh
new file mode 100755
index 000000000..9d10bf1e2
--- /dev/null
+++ b/build-aux/meson/postinstall.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+# Package managers set this so we don't need to run
+if [ -z "$DESTDIR" ]; then
+ echo Compiling GSettings schemas...
+ glib-compile-schemas ${MESON_INSTALL_PREFIX}/share/glib-2.0/schemas
+
+ echo Updating desktop database...
+ update-desktop-database -q ${MESON_INSTALL_PREFIX}/share/applications
+
+ echo Updating icon cache...
+ gtk-update-icon-cache -q -t -f ${MESON_INSTALL_PREFIX}/share/icons/hicolor
+fi \ No newline at end of file