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 628151 - "Keep terminal open" profile option does not return to prompt
"Keep terminal open" profile option does not return to prompt
Status: RESOLVED OBSOLETE
Product: gnome-terminal
Classification: Core
Component: Profiles
2.29.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-08-27 19:31 UTC by Emilien Klein
Modified: 2021-06-10 20:10 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Emilien Klein 2010-08-27 19:31:55 UTC
In the profile options, under the tab ""Title and command", there is the following option :

When the command is done:
1. Quit the terminal
2. Relaunch the command
3. Keep the terminal open

The first option is what's selected in the default profile [on Ubuntu].

If I run a command with gnome-terminal -e "<COMMAND>", the windows closes directly after the command is finished - nothing special. When I change the option to keep the terminal open, the window indeed does not close, but it doesn't return to the prompt, meaning that this window is rendered useless. I have found [1] what appears to be a workaround to return to the prompt. Wouldn't it make more sense if that was the behavior of that option - keep the window open after the command is done, AND go back to prompt so that you can continue using this window?

Or if the behavior of having this window that doesn't return to the prompt is the intended behavior, wouldn't it be possible to add a fourth option to keep the terminal open and return to prompt?

[1] http://ubuntuforums.org/showthread.php?t=1015654

Originally reported at https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/613601
Comment 1 Behdad Esfahbod 2010-08-27 19:42:05 UTC
You can also do something like:

  gnome-terminal -x bash -c '<COMMAND>; bash'
Comment 2 Emilien Klein 2010-08-28 17:24:13 UTC
Thanks for the suggested workaround.
However I am wondering if the "Keep the terminal open" option is working as intended. I'd love to be contradicted, but this is how I see the situation:

If you're running a command and you want the terminal to not close directly, you're probably interested in the output of the original command. It might be that you just want to see what happened, or you might want to issue other commands depending on the output of the original command.

The way this option is currently working, you can't do anything with the terminal once the command is done, just close the window. Giving back the prompt would probably not be a problem for someone that indeed wants to close the window, but it would be beneficial to someone who wants to continue working in that window.

So my question is "Is the current situation the intended outcome?" Is there an actual benefit to rendering the terminal unusable instead of giving back the prompt?
Comment 3 Behdad Esfahbod 2010-08-30 21:04:00 UTC
The current behavior *is* useful in its own.  It's intentional.  What you request is also useful, in other situations.
Comment 4 GNOME Infrastructure Team 2021-06-10 20:10:07 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-terminal/-/issues/7036.