summaryrefslogtreecommitdiffstats
path: root/src/modules/gsettings/meson_post_install.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/modules/gsettings/meson_post_install.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/modules/gsettings/meson_post_install.py b/src/modules/gsettings/meson_post_install.py
new file mode 100644
index 0000000..0ddb70d
--- /dev/null
+++ b/src/modules/gsettings/meson_post_install.py
@@ -0,0 +1,14 @@
+#!/usr/bin/env python3
+
+import os
+import subprocess
+import sys
+
+datadir = sys.argv[1]
+
+# Package managers set this so we don't need to run
+if not os.environ.get('DESTDIR'):
+ schemadir = os.path.join(datadir, 'glib-2.0', 'schemas')
+ print('Compiling gsettings schemas...')
+ subprocess.call(['glib-compile-schemas', schemadir])
+