Make sure to re-install chromium google accounts when refreshing config (#1737)

This commit is contained in:
Omar Skalli
2026-01-02 20:58:42 -08:00
committed by GitHub
parent 807c74d405
commit dbc3c006dd
2 changed files with 20 additions and 1 deletions

19
bin/omarchy-refresh-chromium Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
CONFIG_FILE="$HOME/.config/chromium-flags.conf"
INSTALL_GOOGLE_ACCOUNTS=false
# Check if google accounts were installed
if [[ -f "$CONFIG_FILE" ]] && \
grep -q -- "--oauth2-client-id" "$CONFIG_FILE" && \
grep -q -- "--oauth2-client-secret" "$CONFIG_FILE"; then
INSTALL_GOOGLE_ACCOUNTS=true
fi
# Refresh the Chromium configuration
omarchy-refresh-config chromium-flags.conf
# Re-install Google accounts if previously configured
if [[ "$INSTALL_GOOGLE_ACCOUNTS" == true ]]; then
omarchy-install-chromium-google-account
fi

View File

@@ -1,3 +1,3 @@
echo "Install Copy URL extension for Chromium"
omarchy-refresh-config chromium-flags.conf
omarchy-refresh-chromium