Codebase list gnome-shell-extension-desktop-icons / a9d5cd13-f4ee-4650-b97e-81a406dafa4b/main meson_post_install.py
a9d5cd13-f4ee-4650-b97e-81a406dafa4b/main

Tree @a9d5cd13-f4ee-4650-b97e-81a406dafa4b/main (Download .tar.gz)

meson_post_install.py @a9d5cd13-f4ee-4650-b97e-81a406dafa4b/mainraw · history · blame

#!/usr/bin/python3

import os
import subprocess

prefix = os.environ['MESON_INSTALL_DESTDIR_PREFIX']
schemadir = os.path.join(prefix, 'share', 'glib-2.0', 'schemas')

# Packaging tools define DESTDIR and this isn't needed for them
if 'DESTDIR' not in os.environ:
    print('Compiling GSettings schemas...')
    subprocess.call(['glib-compile-schemas', schemadir])