mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-05-13 18:07:25 +02:00
chromium: add elif for Debian, fallback to flatpak instead of snap
This commit is contained in:
parent
849711c62b
commit
f0b63fedb6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user