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?
Ubuntu – With a launcher for a terminal application, how can I keep the terminal open after the program is complete
command linegnome-terminallauncher
Related Question
- Ubuntu – Open file from terminal in specific application
- Ubuntu – How to get a program I run in Wine to lock to the launcher
- Ubuntu – How to keep the gnome-terminal open after a program closes
- Ubuntu – How to keep application running after closing the 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: