Opening Google Chrome from terminal on macOS causes no text rendering in browser Opening Google Chrome from terminal on macOS causes no text rendering in browser google-chrome google-chrome

Opening Google Chrome from terminal on macOS causes no text rendering in browser


This has been discussed under this GitHub post found from a Google hit result Chrome shows no text when started by chromedriver #183.

Apparently they suggest something got broken in the most recent chrome-driver version of 2.40, their suggestion was so start Chrome with --disable-gpu set, which you can do from the terminal as below. The --disable-gpu apparently disables hardware acceleration using the GPU.

open -a Google\ Chrome --args --disable-gpu

or open it directly from the /Applications/

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --disable-gpu


An option is the following :

/usr/bin/open -a "/Applications/Google Chrome.app" 'http://google.com/'

Another alternative is to add it to bash.profile as follows:

  • Open ~/.bash_profile in your editor of choice.
  • Append this to the bottom of your ~/.bash_profile:

    chrome () { open -a "/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome" "$1" }

    • Save and close the file.
  • Run source ~/.bash_profile from the terminal to reload it.
  • Enjoy being able to type things like chrome http://google.com/ from the terminal.

We can also set Chrome as the default browser and execute the following command :

  open http://google.com/