I have a terminal command I run from an application launcher. This works great, however sometimes the command fails, so I'd like for the terminal to stay open so I can see the results. How can I do this?
Terminal Launcher – How to Keep Terminal Open After Program Completes
command linegnome-terminallauncher
Related Question
- Open File from Terminal in Specific Application – Command Line Guide
- Ubuntu – How to get a program I run in Wine to lock to the launcher
- Keep GNOME Terminal Open – How to Keep GNOME Terminal Open After Program Closes
- Command Line – How to Keep Application Running After Closing Terminal
- Ubuntu – Cannot open gnome-terminal from Unity launcher or from side panel shortcut
Best Answer
Assuming your command is called
mycommand
, I'd change my launcher to run this:If you want a more permanent, perhaps cleaner solution, open up gnome-terminal, go to Edit, Profile preferences and click the Title and Command tab. Change the "When command exits" option to "Hold the terminal open".
When you execute commands, it should now leave the terminal open when something runs.
Edit: If you don't really care about the terminal, you could just use xterm's hold flag: