From dbc3c006dd0b92bca747f007e117aa77e1a6f61a Mon Sep 17 00:00:00 2001 From: Omar Skalli Date: Fri, 2 Jan 2026 20:58:42 -0800 Subject: [PATCH] Make sure to re-install chromium google accounts when refreshing config (#1737) --- bin/omarchy-refresh-chromium | 19 +++++++++++++++++++ migrations/1757021485.sh | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100755 bin/omarchy-refresh-chromium diff --git a/bin/omarchy-refresh-chromium b/bin/omarchy-refresh-chromium new file mode 100755 index 00000000..bb119216 --- /dev/null +++ b/bin/omarchy-refresh-chromium @@ -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 diff --git a/migrations/1757021485.sh b/migrations/1757021485.sh index cb8f4c49..ab524755 100644 --- a/migrations/1757021485.sh +++ b/migrations/1757021485.sh @@ -1,3 +1,3 @@ echo "Install Copy URL extension for Chromium" -omarchy-refresh-config chromium-flags.conf +omarchy-refresh-chromium