gnome-terminal exits after executing parameter sent with "-x" option
I have a bash script that launches an application of mine through a gnome terminal with the following command:
gnome-terminal -x MyApplication
If MyApplication launches correctly, a GUI is displayed. If it fails to launch correctly, it reports errors to stdout (the terminal).
My problem is, the terminal immediately exits when MyApplication exits, leaving no time to see the error messages if MyApplication fails to launch.
You can also see this behavior by trying:
gnome-terminal -x ls
The gnome terminal immediately exits. Is there a way to stop this behavior? I want the terminal to remain until I close it.