linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / glib / schema-override-variable.patch
blobf98af04a7f24568d95871f1c8d1bafc0a572cb4a
1 diff --git a/gio/gsettingsschema.c b/gio/gsettingsschema.c
2 index 1282c10a1..feadfe3aa 100644
3 --- a/gio/gsettingsschema.c
4 +++ b/gio/gsettingsschema.c
5 @@ -360,6 +360,9 @@ initialise_schema_sources (void)
7 try_prepend_data_dir (g_get_user_data_dir ());
9 + if (!is_setuid && (path = g_getenv ("NIX_GSETTINGS_OVERRIDES_DIR")) != NULL)
10 + try_prepend_dir (path);
12 /* Disallow loading extra schemas if running as setuid, as that could
13 * allow reading privileged files. */
14 if (!is_setuid && (path = g_getenv ("GSETTINGS_SCHEMA_DIR")) != NULL)