meson_post_install.py 430 Bytes
Newer Older
1 2 3 4
#!/usr/bin/env python3

import os
import subprocess
5
import sys
6 7

if not os.environ.get('DESTDIR'):
8 9 10
  datadir = sys.argv[1]

  icondir = os.path.join(datadir, 'icons', 'hicolor')
11 12 13
  print('Update icon cache...')
  subprocess.call(['gtk-update-icon-cache', '-f', '-t', icondir])

14 15
  schemadir = os.path.join(datadir, 'glib-2.0', 'schemas')
  print('Compile gsettings schemas...')
16
  subprocess.call(['glib-compile-schemas', schemadir])