From d96b477b8eeb4672db10b2afce99bb5b2aa794d1 Mon Sep 17 00:00:00 2001 From: thelamer Date: Sat, 21 Mar 2026 11:32:11 -0400 Subject: [PATCH 1/2] update to pass ozone when wayland is detected --- README.md | 1 + readme-vars.yml | 1 + root/usr/bin/chromium | 19 ++++++++----------- root/usr/bin/webcord | 10 +++++----- 4 files changed, 15 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 4f9d6aa..8464d10 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 fixes scaling and acceleration. * **28.12.25:** - Add Wayland init logic. * **10.08.25:** - Rebase to Debian Trixie. * **12.07.25:** - Switch to Selkies base image, HTTPS IS NOW REQUIRED. diff --git a/readme-vars.yml b/readme-vars.yml index 5d789c5..195b5b9 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -107,6 +107,7 @@ init_diagram: | "webcord:latest" <- Base Images # changelog changelogs: + - {date: "21.03.26:", desc: "Use Wayland ozone platform fixes scaling and acceleration."} - {date: "28.12.25:", desc: "Add Wayland init logic."} - {date: "10.08.25:", desc: "Rebase to Debian Trixie."} - {date: "12.07.25:", desc: "Switch to Selkies base image, HTTPS IS NOW REQUIRED."} diff --git a/root/usr/bin/chromium b/root/usr/bin/chromium index cecd044..0079cdb 100755 --- a/root/usr/bin/chromium +++ b/root/usr/bin/chromium @@ -7,21 +7,18 @@ 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 \ - --simulate-outdated-no-au='Tue, 31 Dec 2099 23:59:59 GMT' \ - --user-data-dir \ - "$@" > /dev/null 2>&1 -else - ${BIN} \ +# Wayland check +if pgrep labwc > /dev/null 2>&1; then + WAYLAND="--ozone-platform=wayland" +fi + + +${BIN} \ --no-first-run \ --no-sandbox \ --password-store=basic \ --simulate-outdated-no-au='Tue, 31 Dec 2099 23:59:59 GMT' \ --test-type \ --user-data-dir \ + ${WAYLAND} \ "$@" > /dev/null 2>&1 -fi diff --git a/root/usr/bin/webcord b/root/usr/bin/webcord index ad61e72..7a67135 100755 --- a/root/usr/bin/webcord +++ b/root/usr/bin/webcord @@ -2,9 +2,9 @@ BIN=/usr/bin/webcord-real -# 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 "$@" +# Wayland check +if pgrep labwc > /dev/null 2>&1; then + WAYLAND="--ozone-platform=wayland" fi + +${BIN} --password-store=basic ${WAYLAND} --no-sandbox "$@" From c4cf668b9708373f3e0619899a937bf04191e8df Mon Sep 17 00:00:00 2001 From: thelamer Date: Mon, 23 Mar 2026 12:25:46 -0400 Subject: [PATCH 2/2] add gpu check for ozone webcord --- root/usr/bin/webcord | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/root/usr/bin/webcord b/root/usr/bin/webcord index 7a67135..d179c54 100755 --- a/root/usr/bin/webcord +++ b/root/usr/bin/webcord @@ -3,8 +3,10 @@ BIN=/usr/bin/webcord-real # Wayland check -if pgrep labwc > /dev/null 2>&1; then - WAYLAND="--ozone-platform=wayland" +if ls -l /dev/dri/* > /dev/null 2>&1; then + if pgrep labwc > /dev/null 2>&1; then + WAYLAND="--ozone-platform=wayland" + fi fi ${BIN} --password-store=basic ${WAYLAND} --no-sandbox "$@"