1#!/usr/local/bin/python3.8 2 3import os 4import subprocess 5import sys 6 7if not os.environ.get('DESTDIR'): 8 icondir = os.path.join(sys.argv[1], 'icons', 'hicolor') 9 10 print('Update icon cache...') 11 subprocess.call(['gtk-update-icon-cache', '-f', '-t', icondir]) 12 13 schemadir = os.path.join(sys.argv[1], 'glib-2.0', 'schemas') 14 print('Compiling gsettings schemas...') 15 subprocess.call(['glib-compile-schemas', schemadir]) 16