<filename>meson/post_install.py<gh_stars>1-10
#!/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('Rebuilding desktop icons cache...')
    subprocess.call(['gtk-update-icon-cache', '/usr/share/icons/hicolor/'], shell=False)
