earbuds: disable updateScript (#374592)
[NixPkgs.git] / pkgs / development / libraries / libproxy / skip-gsettings-detection.patch
blob1882079b94b0b2437e8e5fc4d8261d7feaaf8022
1 diff --git a/src/backend/plugins/config-gnome/config-gnome.c b/src/backend/plugins/config-gnome/config-gnome.c
2 index 52e812e..a1edcab 100644
3 --- a/src/backend/plugins/config-gnome/config-gnome.c
4 +++ b/src/backend/plugins/config-gnome/config-gnome.c
5 @@ -57,7 +57,6 @@ enum {
6 static void
7 px_config_gnome_init (PxConfigGnome *self)
9 - GSettingsSchemaSource *source;
10 g_autoptr (GSettingsSchema) proxy_schema = NULL;
11 const char *desktops;
13 @@ -71,15 +70,7 @@ px_config_gnome_init (PxConfigGnome *self)
14 if (strstr (desktops, "GNOME") == NULL)
15 return;
17 - source = g_settings_schema_source_get_default ();
18 - if (!source) {
19 - g_warning ("GNOME desktop detected but no schemes installed, aborting.");
20 - return;
21 - }
23 - proxy_schema = g_settings_schema_source_lookup (source, "org.gnome.system.proxy", TRUE);
25 - self->available = proxy_schema != NULL;
26 + self->available = TRUE;
27 if (!self->available)
28 return;