[nautilus-open-terminal] Fix terminal invocation parameters (#602141)
- From: Christian Neumair <cneumair src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [nautilus-open-terminal] Fix terminal invocation parameters (#602141)
- Date: Fri, 1 Jan 2010 20:25:45 +0000 (UTC)
commit 610d61ddb0ad6504a6e0d5823670b206bdbb52dd
Author: Christian Neumair <cneumair gnome org>
Date: Fri Jan 1 21:20:06 2010 +0100
Fix terminal invocation parameters (#602141)
* Remote SSH terminal: Open login shell with - instead of -l parameter.
* Local terminal: Open interactive shell, i.e. drop -l parameter.
src/nautilus-open-terminal.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-open-terminal.c b/src/nautilus-open-terminal.c
index f19cfd0..2ee04ce 100644
--- a/src/nautilus-open-terminal.c
+++ b/src/nautilus-open-terminal.c
@@ -213,7 +213,8 @@ get_remote_ssh_command (const char *uri,
if (command_to_run != NULL) {
remote_command = g_strdup_printf ("cd %s && exec %s", quoted_path, command_to_run);
} else {
- remote_command = g_strdup_printf ("cd %s && exec $SHELL -l", quoted_path);
+ /* login shell */
+ remote_command = g_strdup_printf ("cd %s && exec $SHELL -", quoted_path);
}
quoted_remote_command = g_shell_quote (remote_command);
@@ -300,7 +301,8 @@ get_terminal_command_for_file_info (NautilusFileInfo *file_info,
if (command_to_run != NULL) {
command = g_strdup_printf ("cd %s && exec %s", quoted_path, command_to_run);
} else {
- command = g_strdup_printf ("cd %s && exec $SHELL -l", quoted_path);
+ /* interactive shell */
+ command = g_strdup_printf ("cd %s && exec $SHELL", quoted_path);
}
g_free (quoted_path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]