Bug#694664: gnome-terminal.wrapper: -e doesn't wait for the command to exit

Jakub Wilk jwilk at debian.org
Wed Nov 28 20:12:11 UTC 2012

Package: gnome-terminal
Version: 2.30.2-1

gnome-terminal.wrapper doesn't wait for the executed command to exit if 
another instance of gnome-terminal is already running:

$ alias s5="gnome-terminal.wrapper -e sh -c 'sleep 5'"
$ time s5 & time s5 ; wait
[1] 3096

real	0m0.451s
user	0m0.060s
sys	0m0.084s
[1]+  Done                    time gnome-terminal.wrapper -e sh -c 'sleep 5'

real	0m5.751s
user	0m0.296s
sys	0m0.236s

In contrast, xterm and other x-terminal-emulator providers I'm familiar 
with always wait for the command to finish. (I wrote some software that 
relies on this nice property, which now breaks if x-t-e alternative 
points gnome-terminal.wrapper.)

-- System Information:
Debian Release: 6.0.4
   APT prefers stable-updates
   APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gnome-terminal depends on:
ii  gnome-terminal-data    2.30.2-1          Data files for the GNOME terminal
ii  libatk1.0-0            1.30.0-1          The ATK accessibility toolkit
ii  libc6                  2.11.3-2          Embedded GNU C Library: Shared lib
ii  libdbus-glib-1-2       0.88-2.1          simple interprocess messaging syst
ii  libgconf2-4            2.28.1-6          GNOME configuration database syste
ii  libglib2.0-0           2.24.2-1          The GLib library of C routines
ii  libgtk2.0-0            2.20.1-2          The GTK+ graphical user interface
ii  libice6                2:1.0.6-2         X11 Inter-Client Exchange library
ii  libpango1.0-0          1.28.3-1+squeeze2 Layout and rendering of internatio
ii  libsm6                 2:1.1.1-1         X11 Session Management library
ii  libvte9                1:0.24.3-3        Terminal emulator widget for GTK+
ii  libx11-6               2:1.3.3-4         X11 client-side library

Versions of packages gnome-terminal recommends:
ii  gvfs                          1.6.4-3    userspace virtual filesystem - ser
pn  yelp                          <none>     (no description available)

Jakub Wilk

More information about the pkg-gnome-maintainers mailing list