diff --git a/meson.build b/meson.build index d5baf10..7f065e9 100644 --- a/meson.build +++ b/meson.build @@ -18,4 +18,7 @@ subdir('data') subdir('src') subdir('po') -meson.add_install_script('meson/post_install.py') +gnome.post_install( + glib_compile_schemas: true, + update_desktop_database: true +) diff --git a/meson/post_install.py b/meson/post_install.py deleted file mode 100644 index d0248f4..0000000 --- a/meson/post_install.py +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env python3 - -import os -import subprocess - -schemadir = os.path.join(os.environ['MESON_INSTALL_PREFIX'], 'share', 'glib-2.0', 'schemas') - -if not os.environ.get('DESTDIR'): - print('Compiling gsettings schemas...') - subprocess.call(['glib-compile-schemas', schemadir])