-
Download your native chromium
-
get
api-key
and install it follow this link -
Remember to add your account (that need to sync with chromium) to following group while doing 2nd step:
- set env vars:
- in macOS:
launchctl setenv GOOGLE_API_KEY <your-api-key>
launchctl setenv GOOGLE_DEFAULT_CLIENT_ID <your-client-id>
launchctl setenv GOOGLE_DEFAULT_CLIENT_SECRET <your-client-secret>
- in macOS persistent across reboots, please follow: https://chromium.woolyss.com/#google-api-keys or build chromium by yourself with installed
api-key
Creation of a ~/Library/LaunchAgents/setenv.ChromiumSync.plist containing:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "https://www.apple.com/DTDs/PropertyList-1.0.dtd ">
<plist version="1.0">
<dict>
<key>Label</key>
<string>setenv.ChromiumSync</string>
<key>ProgramArguments</key>
<array>
<string>/bin/launchctl</string>
<string>setenv</string>
<string>GOOGLE_API_KEY</string>
<string>your_key</string>
<string>/bin/launchctl</string>
<string>setenv</string>
<string>GOOGLE_DEFAULT_CLIENT_ID</string>
<string>your_key</string>
<string>/bin/launchctl</string>
<string>setenv</string>
<string>GOOGLE_DEFAULT_CLIENT_SECRET</string>
<string>your_key</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
(with "your_key" being the corresponding Google API key)
- in Linux:
export GOOGLE_API_KEY=<your-api-key>
export GOOGLE_DEFAULT_CLIENT_ID=<your-client-id>
export GOOGLE_DEFAULT_CLIENT_SECRET=<your-client-secret>
- launch your chromium and sign in, enjoy ^_^