Parcourir la source

Migrate from vte_terminal_fork_command to vte_terminal_fork_command_full to make compile against GTK 2.24

Héctor García il y a 10 ans
Parent
commit
7b26add32b
1 fichiers modifiés avec 11 ajouts et 2 suppressions
  1. 11 2
      src/mssh-terminal.c

+ 11 - 2
src/mssh-terminal.c

@@ -46,8 +46,17 @@ void mssh_terminal_start_session(MSSHTerminal *terminal, char **env)
     args[1] = terminal->hostname;
     args[2] = NULL;
 
-    vte_terminal_fork_command(VTE_TERMINAL(terminal), "ssh", args,
-        env, NULL, FALSE, FALSE, FALSE);
+    vte_terminal_fork_command_full(  VTE_TERMINAL(terminal), 
+                                     VTE_PTY_DEFAULT,
+                                     NULL,  /* working dir */
+                                     args,
+                                     env, 
+                                     G_SPAWN_SEARCH_PATH,
+                                     NULL,  /* child_setup */
+                                     NULL,  /* child_setup_data */
+                                     NULL,  /* *child_pid */
+                                     NULL); /* Error handling */
+
 
     free(args[0]);
 }