Package: glib2.0 / 2.42.1-1

03_disble_glib_compile_schemas_warning.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: Disable confusing (to users) warning about deprecated schema paths
Author: Iain Lane <iain.lane@canonical.com>
Forwarded: not-needed

--- a/gio/glib-compile-schemas.c
+++ b/gio/glib-compile-schemas.c
@@ -1202,11 +1202,13 @@
       return;
     }
 
-  if (path && (g_str_has_prefix (path, "/apps/") ||
+// Disable this warning: it confuses users and there is unlikely to be much
+// progress towards fixing
+/*  if (path && (g_str_has_prefix (path, "/apps/") ||
                g_str_has_prefix (path, "/desktop/") ||
                g_str_has_prefix (path, "/system/")))
     g_printerr ("warning: Schema '%s' has path '%s'.  Paths starting with "
-                "'/apps/', '/desktop/' or '/system/' are deprecated.\n", id, path);
+                "'/apps/', '/desktop/' or '/system/' are deprecated.\n", id, path);*/
 
   state->schema_state = schema_state_new (path, gettext_domain,
                                           extends, extends_name, list_of);