GNOME Bugzilla – Bug 628151
"Keep terminal open" profile option does not return to prompt
Last modified: 2021-06-10 20:10:07 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
You can also do something like: gnome-terminal -x bash -c '<COMMAND>; bash'
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?
The current behavior *is* useful in its own. It's intentional. What you request is also useful, in other situations.
-- 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.