diff --git a/README.md b/README.md index 6f825f9..8515c15 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 flag for apps fixes scaling and acceleration. * **28.12.25:** - Add Wayland init logic. * **22.09.25:** - Rebase to Debian Trixie. * **12.07.25:** - Rebase to Selkies, HTTPS IS NOW REQUIRED. diff --git a/readme-vars.yml b/readme-vars.yml index f2a7f6d..bb18a07 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -107,6 +107,7 @@ init_diagram: | "github-desktop:latest" <- Base Images # changelog changelogs: + - {date: "21.03.26:", desc: "Use Wayland ozone platform flag for apps fixes scaling and acceleration."} - {date: "28.12.25:", desc: "Add Wayland init logic."} - {date: "22.09.25:", desc: "Rebase to Debian Trixie."} - {date: "12.07.25:", desc: "Rebase to Selkies, HTTPS IS NOW REQUIRED."} diff --git a/root/usr/bin/chromium b/root/usr/bin/chromium index 4af2c92..238a8fd 100755 --- a/root/usr/bin/chromium +++ b/root/usr/bin/chromium @@ -6,5 +6,9 @@ BIN=/usr/bin/chromium-real 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} --password-store=basic --no-sandbox --test-type "$@" +${BIN} --password-store=basic ${WAYLAND} --no-sandbox --test-type "$@" diff --git a/root/usr/bin/codium b/root/usr/bin/codium index bad2e3d..ff040aa 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 + ${BIN} \ --no-sandbox \ + ${WAYLAND} \ "$@" diff --git a/root/usr/bin/github-desktop b/root/usr/bin/github-desktop index 704b19e..ee25a30 100755 --- a/root/usr/bin/github-desktop +++ b/root/usr/bin/github-desktop @@ -2,4 +2,9 @@ BIN=/usr/lib/github-desktop/github-desktop -dbus-launch ${BIN} --password-store=basic --no-sandbox --test-type "$@" +# Wayland check +if pgrep labwc > /dev/null 2>&1; then + WAYLAND="--ozone-platform=wayland" +fi + +dbus-launch ${BIN} --password-store=basic ${WAYLAND} --no-sandbox --test-type "$@"