[gnome-terminal] server: Sanitise the environment



commit 564d75080206c9d1e1d750bf45a7c35999cd511e
Author: Christian Persch <chpe gnome org>
Date:   Thu Feb 21 15:23:14 2013 +0100

    server: Sanitise the environment
    
    This will make sure anyone running from git will get this right, even
    if it'll be patched out in the distro packages.

 src/server.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/server.c b/src/server.c
index c096898..24f3836 100644
--- a/src/server.c
+++ b/src/server.c
@@ -76,6 +76,14 @@ main (int argc, char **argv)
   bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
   textdomain (GETTEXT_PACKAGE);
 
+  /* Set some env vars to disable ubuntu crap. They'll certainly patch this
+   * out in their package, but anyone running from git will get the right
+   * behaviour.
+   */
+  g_setenv ("LIBOVERLAY_SCROLLBAR", "0", TRUE);
+  g_setenv ("UBUNTU_MENUPROXY", "0", TRUE);
+  g_setenv ("NO_UNITY_GTK_MODULE", "1", TRUE);
+
 #if !GLIB_CHECK_VERSION (2, 35, 3)
   g_type_init ();
 #endif


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