mirror of
https://github.com/basecamp/omarchy.git
synced 2026-01-09 05:10:54 +08:00
17 lines
610 B
Bash
Executable File
17 lines
610 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Allow Chromium to sign in to Google accounts by adding the correct
|
|
# oauth client id and secret to ~/.config/chromium-flags.conf.
|
|
|
|
if [[ -f ~/.config/chromium-flags.conf ]]; then
|
|
CONF=~/.config/chromium-flags.conf
|
|
|
|
grep -qxF -- "--oauth2-client-id=77185425430.apps.googleusercontent.com" "$CONF" ||
|
|
echo "--oauth2-client-id=77185425430.apps.googleusercontent.com" >>"$CONF"
|
|
|
|
grep -qxF -- "--oauth2-client-secret=OTJgUOQcT7lO7GsGZq2G4IlT" "$CONF" ||
|
|
echo "--oauth2-client-secret=OTJgUOQcT7lO7GsGZq2G4IlT" >>"$CONF"
|
|
|
|
echo "Now you can login to your Google Account in Chromium."
|
|
fi
|