diff --git a/README.md b/README.md index 3b52a5f..e4c29c2 100644 --- a/README.md +++ b/README.md @@ -612,5 +612,6 @@ 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. * **08.08.25:** - Initial release. diff --git a/readme-vars.yml b/readme-vars.yml index c4bdfef..a79b161 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -105,5 +105,6 @@ init_diagram: | "weixin: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: "08.08.25:", desc: "Initial release."} diff --git a/root/defaults/autostart_wayland b/root/defaults/autostart_wayland index a8831ad..7714096 100644 --- a/root/defaults/autostart_wayland +++ b/root/defaults/autostart_wayland @@ -1,3 +1,3 @@ #!/bin/bash -wechat +wechat --ozone-platform=wayland diff --git a/root/defaults/menu_wayland.xml b/root/defaults/menu_wayland.xml index cdc08b6..950c835 100644 --- a/root/defaults/menu_wayland.xml +++ b/root/defaults/menu_wayland.xml @@ -3,6 +3,6 @@
diff --git a/root/usr/bin/chromium b/root/usr/bin/chromium index 58df5ef..f1940a1 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 labwc > /dev/null 2>&1; then + WAYLAND="--ozone-platform=wayland" fi + +${BIN} --password-store=basic ${WAYLAND} --no-sandbox --test-type "$@"