diff --git a/root/usr/bin/chromium-browser b/root/usr/bin/chromium-browser index 4630d91d6..4c6db9ec3 100755 --- a/root/usr/bin/chromium-browser +++ b/root/usr/bin/chromium-browser @@ -7,16 +7,9 @@ if ! pgrep chromium > /dev/null;then rm -f $HOME/.config/chromium/Singleton* fi -# Disable GPU without Nvidia -if which nvidia-smi; then - DISABLE_GPU="" -else - DISABLE_GPU="--disable-gpu" +# Wayland check +if pgrep sway > /dev/null 2>&1; then + WAYLAND="--ozone-platform=wayland" fi -# Run normally on privved containers or modified un non priv -if grep -q 'Seccomp:.0' /proc/1/status; then - ${BIN} --password-store=basic ${DISABLE_GPU} "$@" -else - ${BIN} --password-store=basic ${DISABLE_GPU} --no-sandbox --test-type "$@" -fi +${BIN} --password-store=basic ${WAYLAND} --no-sandbox --test-type "$@"