I installed Chromium for mac OS X.
When I launched the browser, I got a message stating "Google api keys are missing".
I followed the instructions on the "Chromium developers how-to". I have configured the needed API and got my API Credentials.
Then, I followed the instructions under the section of "Providing Keys at Runtime".
It seems like my attempts didn't work:
echo "GOOGLE_API_KEY=my_api_key" >> .bash_profile
less .bash_profileand by the command
printenvand the variables appear there.
nano .bash_profile- editing the file visually via the terminal and then saving the changes (although the previous changes did appear, I tried to delete them and then add them once again through this method).
I'm not sure what went wrong in that process, it seems like the API Keys are set properly as environment variables and yet chromium doesn't recognise them.
I would like to know what I should further do in order to solve this issue. Thank you.
Commands in your bash profile are only run if you start
bash, and are only then available in a
bash shell or its child processes. Since your environment variables are only available to
bash, you need to start Chrome from
First, open your
nano again and add the word
export to the start of each line (e.g.
export GOOGLE_DEFAU). This will make child processes of the shell inherit the environment variables. Then, close and reopen your Terminal to reload your
To launch Chromium from
bash in the Terminal, just run something of this form (location of your build may vary):
bash. However, you can make a script with the extension
.commandthat'll be double-clickable in the Finder (e.g. gist.github.com/davidschlachter/… ). Just be sure to make it executable (
chmod a+x /the/script.command). — Apr 26, 2016 at 14:32
External links referenced by this document: