[vte/vte-next] fixup! Remove deprecated vte_terminal_fork_command



commit 71341485402890e596268b6990e818a69a216674
Author: Christian Persch <chpe gnome org>
Date:   Tue May 3 15:53:12 2011 +0200

    fixup! Remove deprecated vte_terminal_fork_command

 src/reflect.c |   20 ++++++++++++--------
 1 files changed, 12 insertions(+), 8 deletions(-)
---
diff --git a/src/reflect.c b/src/reflect.c
index e299819..11ef013 100644
--- a/src/reflect.c
+++ b/src/reflect.c
@@ -67,14 +67,18 @@ terminal_init_vte(GtkWidget **terminal)
 static void
 terminal_shell_vte(GtkWidget *terminal)
 {
-	vte_terminal_fork_command(VTE_TERMINAL(terminal),
-				  getenv("SHELL") ? getenv("SHELL") : "/bin/sh",
-				  NULL,
-				  NULL,
-				  g_get_home_dir() ? g_get_home_dir() : NULL,
-				  FALSE,
-				  FALSE,
-				  FALSE);
+        char *argv[2];
+
+        argv[0] = vte_get_user_shell ();
+        argv[1] = NULL;
+	vte_terminal_fork_command_full(VTE_TERMINAL(terminal),
+                                       VTE_PTY_DEFAULT,
+                                       g_get_home_dir() ? g_get_home_dir() : NULL,
+                                       argv,
+                                       NULL,
+                                       0, NULL, NULL,
+                                       NULL,
+                                       NULL);
 }
 static GtkAdjustment *
 terminal_adjustment_vte(GtkWidget *terminal)



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