base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12 (#356361)
[NixPkgs.git] / pkgs / tools / networking / networkmanager / libnma / hardcode-gsettings.patch
bloba68f96113d34ab8a442b99f31a706f3557bd88fb
1 diff --git a/src/nma-ws/nma-eap.c b/src/nma-ws/nma-eap.c
2 index fa36907..81df821 100644
3 --- a/src/nma-ws/nma-eap.c
4 +++ b/src/nma-ws/nma-eap.c
5 @@ -252,7 +252,18 @@ _get_ca_ignore_settings (NMConnection *connection)
6 g_return_val_if_fail (uuid && *uuid, NULL);
8 path = g_strdup_printf ("/org/gnome/nm-applet/eap/%s/", uuid);
9 - settings = g_settings_new_with_path ("org.gnome.nm-applet.eap", path);
10 + {
11 + g_autoptr(GSettingsSchemaSource) schema_source;
12 + g_autoptr(GSettingsSchema) schema;
13 + schema_source = g_settings_schema_source_new_from_directory("@NM_APPLET_GSETTINGS@",
14 + g_settings_schema_source_get_default(),
15 + TRUE,
16 + NULL);
17 + schema = g_settings_schema_source_lookup(schema_source,
18 + "org.gnome.nm-applet.eap",
19 + FALSE);
20 + settings = g_settings_new_full(schema, NULL, path);
21 + }
22 g_free (path);
24 return settings;