Package: nautilus-open-terminal
Version: 0.19-2
Severity: normal
Tags: patch upstream

Dear Maintainer,

   * What led up to the situation?
   I tried to open a terminal in a sftp share auto-mounted using nautilus.
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
     Right clic on a remote folder and choose "Open remote terminal"
   * What was the outcome of this action?
     A gnome-terminal was launched. But as soon as I got connected, the terminal
     crashed.
   * What outcome did you expect instead?
     A working gnome-terminal cd-ed to the curent remote directory.

I tried to find a way to get feedback from Nautilus (logs, debug mode, etc.).
No luck. I guess this is why there are so few extensions for Nautilus. 
I also suppose this is why nobody responded in 
https://bugs.launchpad.net/ubuntu/+source/nautilus-open-terminal/+bug/783962.

Well, in my case, the generated command line to be executed on the remote server
was ending with "$SHELL -"


--- nautilus-open-terminal-0.19.orig/src/nautilus-open-terminal.c
+++ nautilus-open-terminal-0.19/src/nautilus-open-terminal.c
@@ -213,7 +213,7 @@ get_remote_ssh_command (const char *uri,
        remote_command = g_strdup_printf ("cd %s && exec %s", quoted_path, 
command_to_run);
    } else {
        /* login shell */
-       remote_command = g_strdup_printf ("cd %s && exec $SHELL -", 
quoted_path);
+       remote_command = g_strdup_printf ("cd %s && exec $SHELL", quoted_path);
    }

    quoted_remote_command = g_shell_quote (remote_command);

I guess the "-" is useful in some way but in this case it makes it crash.

Best regards,
Gaƫl

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing'), (400, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages nautilus-open-terminal depends on:
ii  gconf-service            3.2.5-1+build1
ii  gconf2                   3.2.5-1+build1
ii  libc6                    2.13-35
ii  libgconf-2-4             3.2.5-1+build1
ii  libglib2.0-0             2.33.12+really2.32.4-3
ii  libgnome-desktop-3-2     3.4.2-1
ii  libgtk-3-0               3.4.2-4
ii  libnautilus-extension1a  3.4.2-1+build1

nautilus-open-terminal recommends no packages.

nautilus-open-terminal suggests no packages.

-- no debconf information


--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to