From 6342d01ecea4b87e290d3c2a7feef9fe5e3357da Mon Sep 17 00:00:00 2001 From: thelamer Date: Sat, 21 Mar 2026 14:04:44 -0400 Subject: [PATCH] add ozone setting in chromium for wayland mode --- root/usr/bin/chromium-browser | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/root/usr/bin/chromium-browser b/root/usr/bin/chromium-browser index 4630d91d6..4c6db9ec3 100755 --- a/root/usr/bin/chromium-browser +++ b/root/usr/bin/chromium-browser @@ -7,16 +7,9 @@ if ! pgrep chromium > /dev/null;then rm -f $HOME/.config/chromium/Singleton* fi -# Disable GPU without Nvidia -if which nvidia-smi; then - DISABLE_GPU="" -else - DISABLE_GPU="--disable-gpu" +# Wayland check +if pgrep sway > /dev/null 2>&1; then + WAYLAND="--ozone-platform=wayland" fi -# Run normally on privved containers or modified un non priv -if grep -q 'Seccomp:.0' /proc/1/status; then - ${BIN} --password-store=basic ${DISABLE_GPU} "$@" -else - ${BIN} --password-store=basic ${DISABLE_GPU} --no-sandbox --test-type "$@" -fi +${BIN} --password-store=basic ${WAYLAND} --no-sandbox --test-type "$@"