We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53ec0cc commit 036e874Copy full SHA for 036e874
1 file changed
root/usr/bin/chromium-browser
@@ -7,16 +7,9 @@ if ! pgrep chromium > /dev/null;then
7
rm -f $HOME/.config/chromium/Singleton*
8
fi
9
10
-# Disable GPU without Nvidia
11
-if which nvidia-smi; then
12
- DISABLE_GPU=""
13
-else
14
- DISABLE_GPU="--disable-gpu"
+# Wayland check
+if pgrep sway > /dev/null 2>&1; then
+ WAYLAND="--ozone-platform=wayland"
15
16
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
21
- ${BIN} --password-store=basic ${DISABLE_GPU} --no-sandbox --test-type "$@"
22
-fi
+${BIN} --password-store=basic ${WAYLAND} --no-sandbox --test-type "$@"
0 commit comments