Brave now publishes brave-origin-bin on AUR, so use it instead of brave-origin-beta-bin. The stable wrapper also parses flags files correctly, so Brave Origin can use the normal chromium flags like the other Chromium-based browsers. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
17 lines
543 B
Bash
17 lines
543 B
Bash
echo "Switch Brave Origin from the beta to the stable release"
|
|
|
|
if omarchy-pkg-present brave-origin-beta-bin; then
|
|
default_browser=$(xdg-settings get default-web-browser 2>/dev/null || true)
|
|
|
|
omarchy-pkg-aur-add brave-origin-bin
|
|
omarchy-pkg-drop brave-origin-beta-bin
|
|
|
|
mkdir -p ~/.config
|
|
cp -f "$OMARCHY_PATH/config/chromium-flags.conf" ~/.config/brave-origin-flags.conf
|
|
rm -f ~/.config/brave-origin-beta-flags.conf
|
|
|
|
if [[ $default_browser == "brave-origin-beta.desktop" ]]; then
|
|
omarchy-default-browser brave-origin
|
|
fi
|
|
fi
|