121 words
1 minute
Using Google Chrome/Chromium with native Wayland backend in Arch Linux

Updates

In the past, we may need to use XWayland when using Google Chrome or Chromium under the Wayland environment. But now (as of 01/04/2021), it’s possible to use native Wayland with Google Chrome/Chromium and even Electron-based apps if they are installed through the official repository or AUR. Just launch Google Chrome/Chromium with two additional flags:

Terminal window
$ google-chrome-stable --enable-features=UseOzonePlatform --ozone-platform=wayland

or

Terminal window
chromium --enable-features=UseOzonePlatform --ozone-platform=wayland

It’s the same for Electron-based apps:

Terminal window
<app executable> --enable-features=UseOzonePlatform --ozone-platform=wayland
Written content, images, and videos in this post are licensed under CC BY-NC-SA 4.0 . Code snippets are licensed separately under BSD 3-Clause .