diff --git a/README.md b/README.md index 7cd9a74..3cbbab6 100644 --- a/README.md +++ b/README.md @@ -620,6 +620,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. * **22.09.25:** - Rebase to Debian Trixie. * **24.07.25:** - Swap from thunar to caja for filebrowser. diff --git a/readme-vars.yml b/readme-vars.yml index a43ddd2..9d81d37 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -110,6 +110,7 @@ init_diagram: | "vscodium: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: "22.09.25:", desc: "Rebase to Debian Trixie."} - {date: "24.07.25:", desc: "Swap from thunar to caja for filebrowser."} diff --git a/root/usr/bin/chromium b/root/usr/bin/chromium index 4af2c92..f1940a1 100755 --- a/root/usr/bin/chromium +++ b/root/usr/bin/chromium @@ -7,4 +7,9 @@ if ! pgrep chromium > /dev/null;then rm -f $HOME/.config/chromium/Singleton* fi -${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 "$@" diff --git a/root/usr/bin/codium b/root/usr/bin/codium index 1a093a3..5fe4a85 100755 --- a/root/usr/bin/codium +++ b/root/usr/bin/codium @@ -2,6 +2,12 @@ BIN=/usr/share/codium/bin/codium +# Wayland check +if pgrep labwc > /dev/null 2>&1; then + WAYLAND="--ozone-platform=wayland" +fi + dbus-launch ${BIN} \ --no-sandbox \ + ${WAYLAND} \ "$@"