From 4eb2b099e6a46286a1fb31cb1434a3a508a179f7 Mon Sep 17 00:00:00 2001 From: Rickard Nilsson Date: Thu, 17 Jan 2013 12:52:54 +0100 Subject: [PATCH] Generate share/glib-2.0/schemas/gschemas.compiled in system-path. This is required to create a gschemas.compiled file with content from all gschemas. Otherwise, gschemas.compiled will be taken from a random package, and gsettings programs will not find what they are looking for. I had to add this to get NetworkManager-applet to work. You'll also have to add share/glib-2.0 to the pathsToLink list. Generating this in the activation script (along with gtk icons etc), is not the nicest solution. But I have no real idea on how to modularise it. --- modules/config/system-path.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/config/system-path.nix b/modules/config/system-path.nix index 3969be680980..f9f0d11098a9 100644 --- a/modules/config/system-path.nix +++ b/modules/config/system-path.nix @@ -107,6 +107,10 @@ let if [ -x $out/bin/gtk-update-icon-cache -a -f $out/share/icons/hicolor/index.theme ]; then $out/bin/gtk-update-icon-cache $out/share/icons/hicolor fi + + if [ -x $out/bin/glib-compile-schemas -a -w $out/share/glib-2.0/schemas ]; then + $out/bin/glib-compile-schemas $out/share/glib-2.0/schemas + fi ''; };