Launch Firefox and Wait until it is Closed
Question I want to start the Firefox web browser as process to visit a specific website, then wait until it is closed. A special situation is that the browser may already be open and running, as the user may have visited some website already. In that case, the browser would probably open a new tab in an existing window and the newly launched process will be terminated immediately. This should not confuse my waiting process: Either, I want a new browser window (if that can somehow be enforced, maybe via command line arguments) and wait until that is closed, or keep the existing browser window