[gnome-terminal] screen: Use the passed env, not the server env



commit 8e67b51a03dbbd87cfb184fca1d3b53767d5bad5
Author: Christian Persch <chpe gnome org>
Date:   Sun Dec 9 20:06:24 2012 +0100

    screen: Use the passed env, not the server env

 src/terminal-screen.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/terminal-screen.c b/src/terminal-screen.c
index 0e24518..0628778 100644
--- a/src/terminal-screen.c
+++ b/src/terminal-screen.c
@@ -1262,7 +1262,7 @@ get_child_environment (TerminalScreen *screen,
   g_hash_table_remove (env_table, "COLUMNS");
   g_hash_table_remove (env_table, "LINES");
   g_hash_table_remove (env_table, "GNOME_DESKTOP_ICON");
-  
+ 
   g_hash_table_replace (env_table, g_strdup ("COLORTERM"), g_strdup (EXECUTABLE_NAME));
   
 #ifdef GDK_WINDOWING_X11
@@ -1417,7 +1417,7 @@ terminal_screen_do_exec (TerminalScreen *screen,
   GError *err = NULL;
   const char *working_dir;
   VtePtyFlags pty_flags = VTE_PTY_DEFAULT;
-  GSpawnFlags spawn_flags = 0;
+  GSpawnFlags spawn_flags = G_SPAWN_SEARCH_PATH_FROM_ENVP;
   GPid pid;
   gboolean result = FALSE;
 



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