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.

2

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).

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.