1

I'm trying to open chrome with parameters but I figure how to do it. Can anyone help me out?

I've listed the commands, one that works (without any parameters) and one that doesn't (with parameters):

call(["chromium-browser",""]) # this works 
call(["'chromium-browser --start-fullscreen'",""]) # this doesnt 

Thanks

0

1 Answer 1

4

subprocess.call takes either a sequence of program arguments or a single string (with shell=True).

You should either do:

call(['chromium-browser', '--start-fullscreen'])

or:

call('chromium-browser --start-fullscreen', shell=True)

Please refer to documentation of Popen's constructor for more details.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.