I want to run a script in a new terminal window. I found several solutions such as this. However, they all provide terminal specific solutions. So konsole ./myscript.sh works if I'm using konsole, but not if I'm using gnome-terminal or some other terminal program.
Is there a way to open a new terminal that is of the same type as the current one? Or equivalently, a way to locate the executable for the currently running terminal? Or am I misunderstanding something and this doesn't make sense in general, and I should just hardcode a few specific options.
I primarily use arch, debian, and ubuntu, so if there is a solution that works on just those three that would be fine, albeit suboptimal.