Skip to content

Commit 036e874

Browse files
authored
add ozone setting in chromium for wayland mode (#396)
1 parent 53ec0cc commit 036e874

1 file changed

Lines changed: 4 additions & 11 deletions

File tree

root/usr/bin/chromium-browser

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

10-
# Disable GPU without Nvidia
11-
if which nvidia-smi; then
12-
DISABLE_GPU=""
13-
else
14-
DISABLE_GPU="--disable-gpu"
10+
# Wayland check
11+
if pgrep sway > /dev/null 2>&1; then
12+
WAYLAND="--ozone-platform=wayland"
1513
fi
1614

17-
# Run normally on privved containers or modified un non priv
18-
if grep -q 'Seccomp:.0' /proc/1/status; then
19-
${BIN} --password-store=basic ${DISABLE_GPU} "$@"
20-
else
21-
${BIN} --password-store=basic ${DISABLE_GPU} --no-sandbox --test-type "$@"
22-
fi
15+
${BIN} --password-store=basic ${WAYLAND} --no-sandbox --test-type "$@"

0 commit comments

Comments
 (0)