From 406e0f4cd6793c282104199027a08ab3a9d304c0 Mon Sep 17 00:00:00 2001 From: thelamer Date: Sat, 21 Mar 2026 14:07:50 -0400 Subject: [PATCH] add ozone setting in chromium for wayland mode --- root/usr/bin/chromium | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/root/usr/bin/chromium b/root/usr/bin/chromium index 58df5efd9..4c6db9ec3 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} --password-store=basic "$@" -else - ${BIN} --password-store=basic --no-sandbox --test-type "$@" +# Wayland check +if pgrep sway > /dev/null 2>&1; then + WAYLAND="--ozone-platform=wayland" fi + +${BIN} --password-store=basic ${WAYLAND} --no-sandbox --test-type "$@"