diff --git a/bash/usr-local-bin/chromium b/bash/usr-local-bin/chromium index 99a9434..d8c0968 100755 --- a/bash/usr-local-bin/chromium +++ b/bash/usr-local-bin/chromium @@ -1,4 +1,8 @@ #!/usr/bin/env bash set -x -/usr/bin/chromium-browser --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable-features=WaylandWindowDecorations "$@" +if [ -f /usr/bin/chromium-browser ]; then + /usr/bin/chromium-browser --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable-features=WaylandWindowDecorations "$@" +else + snap run chromium --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable "$@" +fi set +x diff --git a/bash/usr-local-bin/vivaldi b/bash/usr-local-bin/vivaldi index eea4521..3767919 100755 --- a/bash/usr-local-bin/vivaldi +++ b/bash/usr-local-bin/vivaldi @@ -2,7 +2,9 @@ set -x if [[ -d "$HOME/.config/vivaldi-snapshot" && -d "$HOME/.cache/vivaldi-snapshot" ]]; then /usr/bin/vivaldi-snapshot --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable-features=WaylandWindowDecorations "$@" -else +elif [ -f /usr/bin/vivaldi ]; then /usr/bin/vivaldi --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable-features=WaylandWindowDecorations "$@" +elif [ -f /snap/bin/vivaldi.vivaldi-stable ]; then + snap run vivaldi.vivaldi-stable --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable "$@" fi set +x