Browse Source

Migrated to vte 0.40. Changed vte_terminal_fork_command_full to vte_terminal_spawn_sync. Removed vte_terminal_set_word_chars

Héctor García 9 years ago
parent
commit
db7472e6af
1 changed files with 11 additions and 13 deletions
  1. 11 13
      src/mssh-terminal.c

+ 11 - 13
src/mssh-terminal.c

@@ -67,16 +67,17 @@ void mssh_terminal_start_session(MSSHTerminal *terminal, char **env)
          args[4] = NULL;
     }
 
-    vte_terminal_fork_command_full(VTE_TERMINAL(terminal),
-                                   VTE_PTY_NO_LASTLOG|VTE_PTY_NO_UTMP|VTE_PTY_NO_WTMP,
-                                   NULL,  /* working dir */
-                                   args,
-                                   env,
-                                   G_SPAWN_SEARCH_PATH,
-                                   NULL,  /* child_setup */
-                                   NULL,  /* child_setup_data */
-                                   NULL,  /* *child_pid */
-                                   NULL); /* Error handling */
+    vte_terminal_spawn_sync(VTE_TERMINAL(terminal),
+                            VTE_PTY_NO_LASTLOG|VTE_PTY_NO_UTMP|VTE_PTY_NO_WTMP,
+                            NULL,  /* working dir */
+                            args,
+                            env,
+                            G_SPAWN_SEARCH_PATH,
+                            NULL,  /* child_setup */
+                            NULL,  /* child_setup_data */
+                            NULL,  /* *child_pid */
+                            NULL,  /* *cancellable */
+                            NULL); /* Error handling */
 
     free(args[0]);
 }
@@ -114,9 +115,6 @@ static void mssh_terminal_init(MSSHTerminal* terminal)
     terminal->started = 0;
     terminal->ended = 0;
 
-    vte_terminal_set_word_chars(VTE_TERMINAL(terminal),
-        "-A-Za-z0-9,./?%&#:_=+@~");
-
     g_signal_connect(G_OBJECT(terminal), "child-exited",
         G_CALLBACK(mssh_terminal_child_exited), terminal);
     g_signal_connect(G_OBJECT(terminal), "focus-in-event",