After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 745282 - Add --wait option to wait for terminal to close
Add --wait option to wait for terminal to close
Status: RESOLVED FIXED
Product: gnome-terminal
Classification: Core
Component: general
3.14.x
Other Linux
: Normal enhancement
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-02-27 11:58 UTC by Ross Burton
Modified: 2019-04-03 18:26 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ross Burton 2015-02-27 11:58:42 UTC
We have a use-case for the behaviour of the gnome-terminal invocation waiting until the new terminal has closed.  We have an option to spawn a new terminal with a specific environment which runs "make menuconfig" on the kernel, and we need to know when the user has finished editing the configuration.

Previously it was possible to hack around gnome-terminals behaviour of exiting immediately if another instance was running by using --disable-factory, but this has since been removed.  We'd like something along the lines of --wait where the new client waits for the master so say that the new terminal has been closed.
Comment 1 Debarshi Ray 2015-02-27 12:47:50 UTC
(In reply to Ross Burton from comment #0)

> Previously it was possible to hack around gnome-terminals behaviour of
> exiting immediately if another instance was running by using
> --disable-factory, but this has since been removed.  We'd like something
> along the lines of --wait where the new client waits for the master so say
> that the new terminal has been closed.

Are you aware of the hidden --app-id option? That is how I run a separate instance of gnome-terminal while developing. Will that work for you?
Comment 2 Ross Burton 2015-02-27 12:51:28 UTC
As in run the server with a custom app id and then quickly spawn a client with the same id?  That's fine for development but not exactly graceful for real use.
Comment 3 Christian Persch 2015-02-28 08:33:26 UTC
This is already implemented in the new client:

$ ./gterminal shell --wait

(The new client isn't finished however, so it's noinst for now.)