Skip to content

Commit f73e55c

Browse files
authored
Merge pull request #14 from linuxserver/ozone
update to pass ozone when wayland is detected
2 parents cff3438 + c4cf668 commit f73e55c

4 files changed

Lines changed: 17 additions & 16 deletions

File tree

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 fixes scaling and acceleration.
615616
* **28.12.25:** - Add Wayland init logic.
616617
* **10.08.25:** - Rebase to Debian Trixie.
617618
* **12.07.25:** - Switch to Selkies base image, HTTPS IS NOW REQUIRED.

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ init_diagram: |
107107
"webcord:latest" <- Base Images
108108
# changelog
109109
changelogs:
110+
- {date: "21.03.26:", desc: "Use Wayland ozone platform fixes scaling and acceleration."}
110111
- {date: "28.12.25:", desc: "Add Wayland init logic."}
111112
- {date: "10.08.25:", desc: "Rebase to Debian Trixie."}
112113
- {date: "12.07.25:", desc: "Switch to Selkies base image, HTTPS IS NOW REQUIRED."}

root/usr/bin/chromium

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,18 @@ 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} \
13-
--no-first-run \
14-
--password-store=basic \
15-
--simulate-outdated-no-au='Tue, 31 Dec 2099 23:59:59 GMT' \
16-
--user-data-dir \
17-
"$@" > /dev/null 2>&1
18-
else
19-
${BIN} \
10+
# Wayland check
11+
if pgrep labwc > /dev/null 2>&1; then
12+
WAYLAND="--ozone-platform=wayland"
13+
fi
14+
15+
16+
${BIN} \
2017
--no-first-run \
2118
--no-sandbox \
2219
--password-store=basic \
2320
--simulate-outdated-no-au='Tue, 31 Dec 2099 23:59:59 GMT' \
2421
--test-type \
2522
--user-data-dir \
23+
${WAYLAND} \
2624
"$@" > /dev/null 2>&1
27-
fi

root/usr/bin/webcord

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
BIN=/usr/bin/webcord-real
44

5-
# Run normally on privved containers or modified un non priv
6-
if grep -q 'Seccomp:.0' /proc/1/status; then
7-
${BIN} --password-store=basic "$@"
8-
else
9-
${BIN} --password-store=basic --no-sandbox "$@"
5+
# Wayland check
6+
if ls -l /dev/dri/* > /dev/null 2>&1; then
7+
if pgrep labwc > /dev/null 2>&1; then
8+
WAYLAND="--ozone-platform=wayland"
9+
fi
1010
fi
11+
12+
${BIN} --password-store=basic ${WAYLAND} --no-sandbox "$@"

0 commit comments

Comments
 (0)