#!/bin/bash

# omarchy:summary=Offer to move from Chromium to Google Chrome as the default browser
# omarchy:hidden=true

# Queued for the login after the update that brings the offer. A browser chosen
# since then is left alone; failing to reach the notification server keeps it
# queued for the next login.
if [[ $(omarchy-cmd-default-browser) == "chromium.desktop" ]]; then
  exec omarchy-default-browser-switch-to-chrome --offer
fi
