<div dir="ltr"><p style="margin:0px 0px 1.2em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px">(Copy of bug <a href="https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1871805" style="font-family:Arial,Helvetica,sans-serif;font-size:small">https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1871805</a>). New version 3.36 solves --wait bug. </p><p style="margin:0px 0px 1.2em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px">Dear Maintainers,</p><p id="gmail-yui_3_10_3_1_1586868484907_1618" style="margin:0px 0px 1.2em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px">We have developed a program that it launches a new gnome-terminal with a ssh tunnel connection. Basically, the program forwards a local port to the destination address and opens a new terminal with a ssh connection to the local port:</p><p style="margin:0px 0px 1.2em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px">gnome-terminal -e "/usr/bin/ssh -o XXX -p XXX <a href="mailto:ubuntu@127.0.0.2">ubuntu@127.0.0.2</a>"</p><p style="margin:0px 0px 1.2em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px">The problem comes when we need to know when this gnome-terminal session has finished, in order to end the tunnel process. As you might know, the gnome-terminal command fires up gnome-terminal-server which it might be already running. Who handles the "ssh" connection is the gnome-terminal-server and not the gnome-terminal command, thus our program receives and exit code just after executing the previous command.</p><p style="margin:0px 0px 1.2em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px">In previous version there was the --disable-factory option, but unfortunately now is deprecated. Because of this type of problem it was added the --wait flag which was introduced in 3.27.1:</p><p style="margin:0px 0px 1.2em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px">gnome-terminal --wait -e "/usr/bin/ssh -o XXX -p XXX <a href="mailto:ubuntu@127.0.0.2">ubuntu@127.0.0.2</a>"</p><p style="margin:0px 0px 1.2em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px">Nevertheless, there's a bug in this version. More information: <a rel="nofollow" href="https://gitlab.gnome.org/GNOME/gnome-terminal/issues/16" style="color:rgb(0,51,170);text-decoration-line:none">https://gitlab.gnome.org/GNOME/gnome-terminal/issues/16</a></p><p style="margin:0px 0px 1.2em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px">You can reproduced by launching a new gnome-terminal with the --wait flag from a gnome-terminal session and try to close it via a window operation. In that version --wait only works if with the exit command in the opened session.</p><p style="margin:0px 0px 1.2em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px">As mentioned in the linked URL this is solved in version >= 3.36 which also uses a new vte version (libvte-2.91-dev_0.60.1). I have seen that there are multiple issues referring the --disable-factory deprecated option, those could be closed as the new --wait option has the same behavior.</p><p style="margin:0px 0px 1.2em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px">Could we update the bionic gnom-terminal 3.28 to >= 3.36 version?</p><p style="margin:0px 0px 1.2em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px">ProblemType: Bug<br>DistroRelease: Ubuntu 18.04<br>Package: gnome-terminal 3.28.1-1ubuntu1<br>Architecture: amd64</p></div>