When I run...
os.system("firefox --private-window ") I get this message in my terminal...
ATTENTION: default value of option mesa_glthread overridden by environment. ...which seems to prevent the rest of my script from operating properly.
I have read that many developers seem to try to avoid using os.system, but my script failed to run properly when I tried to use subprocess.run; therefore I used os.system.
1 Answer
The message:
ATTENTION: default value of option mesa_glthread overridden by environment.
comes from the mesa library because firefox overrides its default. See this report bug at mozilla.org
I wonder if this prevents your script to run properly. In contrast, using os.system should block the script as os.system waits for the command to be completed. Unless if firefox puts itself in background (this is the case when there is a firefox process already running).