diff options
-rw-r--r-- | meson.build | 7 | ||||
-rw-r--r-- | meson_post_install.py | 15 |
2 files changed, 3 insertions, 19 deletions
diff --git a/meson.build b/meson.build index 9174b428..1fa4049d 100644 --- a/meson.build +++ b/meson.build @@ -196,8 +196,7 @@ configure_file( configuration: config_h, ) -meson.add_install_script( - 'meson_post_install.py', - cheese_datadir, - gio_schemasdir, +gnome.post_install( + glib_compile_schemas: true, + gtk_update_icon_cache: true, ) diff --git a/meson_post_install.py b/meson_post_install.py deleted file mode 100644 index 24242df0..00000000 --- a/meson_post_install.py +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env python3 - -import os -import subprocess -import sys - -if not os.environ.get('DESTDIR'): - prefix = os.environ['MESON_INSTALL_PREFIX'] - - icondir = os.path.join(prefix, sys.argv[1], 'icons', 'hicolor') - print('Updating icon cache...') - subprocess.call(['gtk-update-icon-cache', '-f', '-t', icondir]) - - print('Compiling gsettings schemas...') - subprocess.call(['glib-compile-schemas', sys.argv[2]]) |