Sample Header Ad - 728x90

How to add Google Chrome to path?

1 vote
2 answers
813 views
I want to add Google Chrome to path under the google-chrome name so that I can execute the following command: google-chrome --version. First I tried with:
sudo ln -s /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome /usr/local/bin/google-chrome
But I kept receiving pop-ups with an error message (Google Chrome quit unexpectedly.). So I tried with --headless, i.e. made a script called /usr/local/bin/google-chrome and put the following there:
#!/bin/bash
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome "$@" --headless
But I'm getting: ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer. Made a bit of googling, tried a solution with --disable-gpu, but it still does not work. Note that /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --version returns the correct version.
Asked by mångata (111 rep)
Oct 20, 2023, 06:28 AM
Last activity: Jan 16, 2024, 10:24 AM