← Back to team overview

desktop-packages team mailing list archive

[Bug 666418] Re: gnome-terminal.wrapper doesn't wait until program finishes

 

This is what caused bug #799627 - "Race condition in mailto-mutt".

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-terminal in Ubuntu.
https://bugs.launchpad.net/bugs/666418

Title:
  gnome-terminal.wrapper doesn't wait until program finishes

Status in “gnome-terminal” package in Ubuntu:
  Confirmed

Bug description:
  Binary package hint: gnome-terminal

  "gnome-terminal -e some_program"
  usually (if another gnome-terminal is already running) returns immediately; most other terminal emulators (e.g. xterm) return only after the program finishes, which is much more convenient when opening programs in a terminal from scripts.
  "gnome-terminal --disable-factory -e some_program"
  does wait, which solves the issue - unless you're writing a portable script and use
  "x-terminal-emulator -e some_program"
  where you'll get different behavior depending on the alternative selected for x-terminal-emulator.
  And you can't use "x-terminal-emulator --disable-factory -e some_program" because xterm etc. will barf on it.

  IMHO, gnome-terminal itself should always wait for the command to return.
  But defaulting to no-factory mode would lose all benefits for which the factory was created;
  waiting for completion notification from the factory would solve it better but I have no idea if it's easy to implement.

  An easier solution is to always add --disable-factory in gnome-terminal.wrapper.
  This would keep the behavior of "gnome-terminal" but unify the behavior of "x-terminal-emulator".

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/666418/+subscriptions