Skip to content

Commit 3f9c997

Browse files
authored
Merge pull request #19 from linuxserver/ozone
update chromium wrapper to pass ozone platform
2 parents fcc9b3e + 624ebb7 commit 3f9c997

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
612612

613613
## Versions
614614

615+
* **21.03.26:** - Use Wayland ozone platform for chromium fixes scaling and acceleration.
615616
* **28.12.25:** - Add Wayland init logic.
616617
* **10.07.25:** - Rebase to Selkies HTTPS IS NOW REQUIRED, merge chinese and english image.
617618
* **10.02.24:** - Update Readme with new env vars and ingest proper PWA icon.

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ init_diagram: |
100100
"wps-office:latest" <- Base Images
101101
# changelog
102102
changelogs:
103+
- {date: "21.03.26:", desc: "Use Wayland ozone platform for chromium fixes scaling and acceleration."}
103104
- {date: "28.12.25:", desc: "Add Wayland init logic."}
104105
- {date: "10.07.25:", desc: "Rebase to Selkies HTTPS IS NOW REQUIRED, merge chinese and english image."}
105106
- {date: "10.02.24:", desc: "Update Readme with new env vars and ingest proper PWA icon."}

root/usr/bin/chromium

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ if ! pgrep chromium > /dev/null;then
77
rm -f $HOME/.config/chromium/Singleton*
88
fi
99

10-
# Run normally on privved containers or modified un non priv
11-
if grep -q 'Seccomp:.0' /proc/1/status; then
12-
${BIN} --password-store=basic "$@"
13-
else
14-
${BIN} --password-store=basic --no-sandbox --test-type "$@"
10+
11+
# Wayland check
12+
if pgrep labwc > /dev/null 2>&1; then
13+
WAYLAND="--ozone-platform=wayland"
1514
fi
15+
16+
${BIN} --password-store=basic ${WAYLAND} --no-sandbox --test-type "$@"

0 commit comments

Comments
 (0)