From aded292ca500785cbf47b127c861d3a04975e3af Mon Sep 17 00:00:00 2001 From: thelamer Date: Fri, 20 Mar 2026 16:01:07 -0400 Subject: [PATCH] update wrappers to pass ozone when wayland is detected --- README.md | 1 + readme-vars.yml | 1 + root/usr/bin/chromium | 6 ++++++ root/usr/bin/obsidian | 6 ++++++ 4 files changed, 14 insertions(+) diff --git a/README.md b/README.md index a9636f0..f5c8c9e 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 +* **20.03.26:** - Use Wayland ozone platform fixes scaling and acceleration. * **28.12.25:** - Add Wayland init logic. * **21.09.25:** - Rebase to Debian Trixie. * **12.07.25:** - Rebase to Selkies add no sandbox to launcher, HTTPS IS NOW REQUIRED. diff --git a/readme-vars.yml b/readme-vars.yml index 0453f35..2ee7f6e 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -109,6 +109,7 @@ init_diagram: | "obsidian:latest" <- Base Images # changelog changelogs: + - {date: "20.03.26:", desc: "Use Wayland ozone platform fixes scaling and acceleration."} - {date: "28.12.25:", desc: "Add Wayland init logic."} - {date: "21.09.25:", desc: "Rebase to Debian Trixie."} - {date: "12.07.25:", desc: "Rebase to Selkies add no sandbox to launcher, HTTPS IS NOW REQUIRED."} diff --git a/root/usr/bin/chromium b/root/usr/bin/chromium index f7dd851..e89d04e 100755 --- a/root/usr/bin/chromium +++ b/root/usr/bin/chromium @@ -7,6 +7,11 @@ if ! pgrep chromium > /dev/null;then rm -f $HOME/.config/chromium/Singleton* fi +# Wayland check +if pgrep labwc > /dev/null 2>&1; then + WAYLAND="--ozone-platform=wayland" +fi + ${BIN} \ --no-first-run \ --no-sandbox \ @@ -14,4 +19,5 @@ ${BIN} \ --simulate-outdated-no-au='Tue, 31 Dec 2099 23:59:59 GMT' \ --test-type \ --user-data-dir \ + ${WAYLAND} \ "$@" > /dev/null 2>&1 diff --git a/root/usr/bin/obsidian b/root/usr/bin/obsidian index 3a2f3ea..ef1c1af 100755 --- a/root/usr/bin/obsidian +++ b/root/usr/bin/obsidian @@ -2,6 +2,12 @@ BIN=/opt/obsidian/obsidian +# Wayland check +if pgrep labwc > /dev/null 2>&1; then + WAYLAND="--ozone-platform=wayland" +fi + ${BIN} \ --no-sandbox \ + ${WAYLAND} \ "$@" > /dev/null 2>&1