2022-03-30 09:31:56 +00:00
|
|
|
diff --git a/src/libgpaste/gpaste/gpaste-settings.c b/src/libgpaste/gpaste/gpaste-settings.c
|
2024-01-02 11:29:13 +00:00
|
|
|
index 830f5e0b..c8df0e11 100644
|
2022-03-30 09:31:56 +00:00
|
|
|
--- a/src/libgpaste/gpaste/gpaste-settings.c
|
|
|
|
+++ b/src/libgpaste/gpaste/gpaste-settings.c
|
2024-01-02 11:29:13 +00:00
|
|
|
@@ -1039,7 +1039,10 @@ create_g_settings (void)
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
- return g_settings_new (G_PASTE_SETTINGS_NAME);
|
|
|
|
+ // library used by introspection requires schemas but we cannot set XDG_DATA_DIRS for the library
|
2024-01-02 11:29:13 +00:00
|
|
|
+ g_autoptr (GSettingsSchemaSource) schema_source = g_settings_schema_source_new_from_directory ("@gschemasCompiled@", NULL, FALSE, NULL);
|
2020-04-24 23:36:52 +00:00
|
|
|
+ g_autoptr (GSettingsSchema) schema = g_settings_schema_source_lookup (schema_source, G_PASTE_SETTINGS_NAME, FALSE);
|
|
|
|
+ return g_settings_new_full (schema, NULL, NULL);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|