summary refs log blame commit diff
path: root/pkgs/development/libraries/glib/schema-override-variable.patch
blob: 1cb5a730351b1b0e65954abc646ccbd852dd0065 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                     
--- a/gio/gsettingsschema.c
+++ b/gio/gsettingsschema.c
@@ -352,6 +352,9 @@
 
       try_prepend_data_dir (g_get_user_data_dir ());
 
+      if ((path = g_getenv ("NIX_GSETTINGS_OVERRIDES_DIR")) != NULL)
+        try_prepend_dir (path);
+
       if ((path = g_getenv ("GSETTINGS_SCHEMA_DIR")) != NULL)
         try_prepend_dir (path);