diff --git a/bash/snap-browsers.bash b/bash/snap-browsers.bash index 9531792..5cf8c31 100755 --- a/bash/snap-browsers.bash +++ b/bash/snap-browsers.bash @@ -74,4 +74,16 @@ if [[ ! -f "/usr/bin/vivaldi" ]] && [[ ! -f "/usr/bin/vivaldi-snapshot" ]]; then fi fi +# TODO: Revisit when they change CEO. +# - 2008: https://en.wikipedia.org/wiki/Brendan_Eich#Appointment_to_CEO_and_resignation +# - 2025: https://news.ycombinator.com/item?id=43251203 +# +#if [[ ! -f "/usr/bin/brave-browser-stable" ]] && [[ ! -f "/usr/bin/brave-browser-beta" ]] && [[ ! -f "/usr/bin/brave-browser-nightly" ]]; then +# if [ -f "/snap/bin/brave" ]; then +# snap refresh brave +# else +# snap install brave +# fi +#fi + set +x diff --git a/bash/usr-local-bin/brave b/bash/usr-local-bin/brave index c972144..aad009c 100755 --- a/bash/usr-local-bin/brave +++ b/bash/usr-local-bin/brave @@ -1,9 +1,12 @@ #!/usr/bin/env bash - set -x + if [[ -d "$HOME/.config/BraveSoftware/Brave-Browser-Nightly" && -d "$HOME/.cache/BraveSoftware/Brave-Browser-Nightly" ]]; then /usr/bin/brave-browser-nightly --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable-features=WaylandWindowDecorations "$@" -else +elif [ -f /usr/bin/brave-browser-stable ]; then /usr/bin/brave-browser-stable --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable-features=WaylandWindowDecorations "$@" +elif [ -f /snap/bin/brave ]; then + snap run brave --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable "$@" fi + set +x