[gnome-terminal] terminal-nautilus: initiate ssh with -t



commit 0da493554b232ae60775f550e786384aece7459e
Author: Dominique Leuenberger <dimstar opensuse org>
Date:   Thu Nov 21 19:31:02 2013 +0100

    terminal-nautilus: initiate ssh with -t
    
    If not done, then most of the time no tty is allocated and users
    are presented with a terminal which went perfectly to the directory
    requested, but as there is no prompt presented, it appears to be
    hanging there.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=712838

 src/terminal-nautilus.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/terminal-nautilus.c b/src/terminal-nautilus.c
index 4048a94..28290ac 100644
--- a/src/terminal-nautilus.c
+++ b/src/terminal-nautilus.c
@@ -238,9 +238,10 @@ ssh_argv (const char *uri,
 
   g_assert (uri != NULL);
 
-  argv = g_new0 (char *, 8);
+  argv = g_new0 (char *, 9);
   argc = 0;
   argv[argc++] = g_strdup ("ssh");
+  argv[argc++] = g_strdup ("-t");
 
   file = g_file_new_for_uri (uri);
   parse_sftp_uri (file, &user_name, &host_name, &host_port, &path);


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