2021-03-08 17:56:53 +00:00
|
|
|
diff --git a/gio/gsettingsschema.c b/gio/gsettingsschema.c
|
|
|
|
index 1282c10a1..feadfe3aa 100644
|
2017-11-15 02:36:35 +00:00
|
|
|
--- a/gio/gsettingsschema.c
|
|
|
|
+++ b/gio/gsettingsschema.c
|
2021-03-08 17:56:53 +00:00
|
|
|
@@ -360,6 +360,9 @@ initialise_schema_sources (void)
|
2017-11-15 02:36:35 +00:00
|
|
|
|
|
|
|
try_prepend_data_dir (g_get_user_data_dir ());
|
|
|
|
|
2021-03-08 17:56:53 +00:00
|
|
|
+ if (!is_setuid && (path = g_getenv ("NIX_GSETTINGS_OVERRIDES_DIR")) != NULL)
|
2017-11-15 02:36:35 +00:00
|
|
|
+ try_prepend_dir (path);
|
|
|
|
+
|
2021-03-08 17:56:53 +00:00
|
|
|
/* Disallow loading extra schemas if running as setuid, as that could
|
|
|
|
* allow reading privileged files. */
|
|
|
|
if (!is_setuid && (path = g_getenv ("GSETTINGS_SCHEMA_DIR")) != NULL)
|