1
0
Prechádzať zdrojové kódy

Migrate from vte_terminal_fork_command to vte_terminal_fork_command_full to make compile against GTK 2.24

Héctor García 11 rokov pred
rodič
commit
7b26add32b
1 zmenil súbory, kde vykonal 11 pridanie a 2 odobranie
  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]);
 }