diff options
author | Christian Persch <chpe@gnome.org> | 2015-09-28 20:15:01 +0200 |
---|---|---|
committer | Christian Persch <chpe@gnome.org> | 2015-09-28 20:23:24 +0200 |
commit | 845b1d97f6f42960ea3c5e133077cbe421120f56 (patch) | |
tree | 0eb29bbd02a4e0c15868e8bcc1dae7ac26287cbc | |
parent | 346a2e5a2d1be28968dab109bf020f08d7e5e5fb (diff) | |
download | vte-845b1d97f6f42960ea3c5e133077cbe421120f56.tar.gz |
vteapp: Silence useless debug spew by default
-rw-r--r-- | src/app.vala | 4 | ||||
-rw-r--r-- | src/vteapp.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/app.vala b/src/app.vala index 13eeb766..25279609 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 5d45a280..b2192819 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)); |