chromium: add elif for Debian, fallback to flatpak instead of snap

This commit is contained in:
Aminda Suomalainen 2025-04-14 21:23:26 +03:00
parent 849711c62b
commit f0b63fedb6
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723

View File

@ -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