You are not logged in.
Hello, I'm writing a simple script that should run bash command running a specific subcommand, and I would like that this bash command is run on the installed default terminal. My idea was something similar to:
<terminal executable> -- bash -c "echo 'Hello World' "Is there a way to implement this? Is it possible to use a method similar to "xdg-open" in order to run the default terminal application?
Offline
There's no standard for the "default" terminal emulator.
Some environments will interpret $TERMINAL but you can't even rely on that.
Of course, since you're writing the invocation, you can use whatever you want and make sure that's exported.
${TERMINAL:-xterm} -e bash -c 'echo foo; sleep 5'Offline
There's no standard for the "default" terminal emulator.
Some environments will interpret $TERMINAL but you can't even rely on that.Of course, since you're writing the invocation, you can use whatever you want and make sure that's exported.
${TERMINAL:-xterm} -e bash -c 'echo foo; sleep 5'
What does "${TERMINAL:-xterm}" do?
Offline
Offline