diff --git a/root/usr/bin/chromium b/root/usr/bin/chromium index f4adcab85..817ae3e57 100755 --- a/root/usr/bin/chromium +++ b/root/usr/bin/chromium @@ -7,9 +7,9 @@ if ! pgrep chromium > /dev/null;then rm -f $HOME/.config/chromium/Singleton* fi -# Run normally on privved containers or modified un non priv -if grep -q 'Seccomp:.0' /proc/1/status; then - ${BIN} --no-first-run --password-store=basic "$@" -else - ${BIN} --no-first-run --password-store=basic --no-sandbox --test-type "$@" +# Wayland check +if pgrep sway > /dev/null 2>&1; then + WAYLAND="--ozone-platform=wayland" fi + +${BIN} --no-first-run --password-store=basic ${WAYLAND} --no-sandbox --test-type "$@"