From f0b63fedb68422d27f0767fb59e8a311a84c45fd Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Mon, 14 Apr 2025 21:23:26 +0300 Subject: [PATCH] chromium: add elif for Debian, fallback to flatpak instead of snap --- bash/usr-local-bin/chromium | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bash/usr-local-bin/chromium b/bash/usr-local-bin/chromium index d8c0968..ba1f3ec 100755 --- a/bash/usr-local-bin/chromium +++ b/bash/usr-local-bin/chromium @@ -2,7 +2,11 @@ set -x if [ -f /usr/bin/chromium-browser ]; then /usr/bin/chromium-browser --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable-features=WaylandWindowDecorations "$@" -else +elif [ -f /usr/bin/chromium ]; then + /usr/bin/chromium --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable-features=WaylandWindowDecorations "$@" +elif [ -f /snap/bin/chromium ]; then snap run chromium --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable "$@" +else + flatpak run org.chromium.Chromium --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable "$@" fi set +x