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

resolver101
  • 2,155
  • 11
  • 41
  • 53

1 Answers1

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.

blhsing
  • 91,368
  • 6
  • 71
  • 106