[nautilus-open-terminal] Using exec to get rid of the helper shell



commit 357a768b063ced123afaaf60322fd7076e806e1e
Author: Evangelos Foutras <foutrelis gmail com>
Date:   Sat Aug 1 17:36:37 2009 +0300

    Using exec to get rid of the helper shell
    
    Signed-off-by: Evangelos Foutras <foutrelis gmail com>
    Signed-off-by: Christian Neumair <cnmeumair gnome org>

 src/nautilus-open-terminal.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/nautilus-open-terminal.c b/src/nautilus-open-terminal.c
index f0e2c0a..b452195 100644
--- a/src/nautilus-open-terminal.c
+++ b/src/nautilus-open-terminal.c
@@ -211,9 +211,9 @@ get_remote_ssh_command (const char *uri,
 	}
 
 	if (command_to_run != NULL) {
-		remote_command = g_strdup_printf ("cd %s && %s", quoted_path, command_to_run);
+		remote_command = g_strdup_printf ("cd %s && exec %s", quoted_path, command_to_run);
 	} else {
-		remote_command = g_strdup_printf ("cd %s && $SHELL -l", quoted_path);
+		remote_command = g_strdup_printf ("cd %s && exec $SHELL -l", quoted_path);
 	}
 
 	quoted_remote_command = g_shell_quote (remote_command);
@@ -298,9 +298,9 @@ get_terminal_command_for_file_info (NautilusFileInfo *file_info,
 		quoted_path = g_shell_quote (path);
 
 		if (command_to_run != NULL) {
-			command = g_strdup_printf ("cd %s && %s", quoted_path, command_to_run);
+			command = g_strdup_printf ("cd %s && exec %s", quoted_path, command_to_run);
 		} else {
-			command = g_strdup_printf ("cd %s && $SHELL -l", quoted_path);
+			command = g_strdup_printf ("cd %s && exec $SHELL -l", quoted_path);
 		}
 
 		g_free (quoted_path);



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