Skip to content

Commit e423fa7

Browse files
authored
add ozone setting in chromium for wayland mode (#397)
1 parent ec4dfe6 commit e423fa7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

root/usr/bin/chromium

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ 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+
# Wayland check
11+
if pgrep sway > /dev/null 2>&1; then
12+
WAYLAND="--ozone-platform=wayland"
1513
fi
14+
15+
${BIN} --password-store=basic ${WAYLAND} --no-sandbox --test-type "$@"

0 commit comments

Comments
 (0)