I am trying to create a Python script that runs multiple executables in their own terminals at once and blocks on their termination.
What I've done so far is create a thread pool, submit to the pool a worker that attempts to run the executable via Popen in the subprocess module and then .wait() on the result before taking some action. This I have working. What I need help with is launching this in a gnome terminal and waiting on the executable to finish. I am on ubuntu, or else I'd use creationflags=CREATE_NEW_CONSOLE in the Popen constructor, but that seems limited to Windows only. Is this even possible? If I wrap my executable in gnome-terminal in the Popen constructor, the wait call is on gnome-terminal not my executable.