[vte] vteapp: Silence useless debug spew by default



commit 845b1d97f6f42960ea3c5e133077cbe421120f56
Author: Christian Persch <chpe gnome org>
Date:   Mon Sep 28 20:15:01 2015 +0200

    vteapp: Silence useless debug spew by default

 src/app.vala |    4 ++++
 src/vteapp.c |    4 ++++
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index 13eeb76..2527960 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -936,6 +936,10 @@ class App : Gtk.Application
     if (Environment.get_variable("VTE_CJK_WIDTH") != null) {
       printerr("VTE_CJK_WIDTH is not supported anymore, use --cjk-width instead\n");
     }
+    /* Not interested in silly debug spew, bug #749195 */
+    if (Environment.get_variable("G_ENABLE_DIAGNOSTIC") == null) {
+      Environment.set_variable("G_ENABLE_DIAGNOSTIC", "0", true);
+    }
     Environment.set_prgname("vte-app");
     Environment.set_application_name("Terminal");
 
diff --git a/src/vteapp.c b/src/vteapp.c
index 5d45a28..b219281 100644
--- a/src/vteapp.c
+++ b/src/vteapp.c
@@ -770,6 +770,10 @@ main(int argc, char **argv)
                 g_printerr("VTE_CJK_WIDTH is not supported anymore, use --cjk-width instead\n");
         }
 
+        /* Not interested in silly debug spew, bug #749195 */
+        if (g_getenv ("G_ENABLE_DIAGNOSTIC") == NULL)
+                g_setenv ("G_ENABLE_DIAGNOSTIC", "0", TRUE);
+
        context = g_option_context_new (" - test VTE terminal emulation");
        g_option_context_add_main_entries (context, options, NULL);
        g_option_context_add_group (context, gtk_get_option_group (TRUE));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]