From 624ebb78d2d454d2b314463ba11c1845ffc4f11e Mon Sep 17 00:00:00 2001 From: thelamer Date: Sat, 21 Mar 2026 11:54:54 -0400 Subject: [PATCH] update chromium wrapper to pass ozone platform --- README.md | 1 + readme-vars.yml | 1 + root/usr/bin/chromium | 11 ++++++----- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index adc35d1..e18f0e8 100644 --- a/README.md +++ b/README.md @@ -612,6 +612,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64 ## Versions +* **21.03.26:** - Use Wayland ozone platform for chromium fixes scaling and acceleration. * **28.12.25:** - Add Wayland init logic. * **10.07.25:** - Rebase to Selkies HTTPS IS NOW REQUIRED, merge chinese and english image. * **10.02.24:** - Update Readme with new env vars and ingest proper PWA icon. diff --git a/readme-vars.yml b/readme-vars.yml index 96c7331..56909da 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -100,6 +100,7 @@ init_diagram: | "wps-office:latest" <- Base Images # changelog changelogs: + - {date: "21.03.26:", desc: "Use Wayland ozone platform for chromium fixes scaling and acceleration."} - {date: "28.12.25:", desc: "Add Wayland init logic."} - {date: "10.07.25:", desc: "Rebase to Selkies HTTPS IS NOW REQUIRED, merge chinese and english image."} - {date: "10.02.24:", desc: "Update Readme with new env vars and ingest proper PWA icon."} diff --git a/root/usr/bin/chromium b/root/usr/bin/chromium index 58df5ef..0d6685b 100755 --- a/root/usr/bin/chromium +++ b/root/usr/bin/chromium @@ -7,9 +7,10 @@ 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 labwc > /dev/null 2>&1; then + WAYLAND="--ozone-platform=wayland" fi + +${BIN} --password-store=basic ${WAYLAND} --no-sandbox --test-type "$@"