Ubuntu 23.10 will soon be released and it’s already shaping up to be an impressive release. One thing the upcoming release does is ship with the Snap version of Firefox running in Wayland mode.
I already know what you’re thinking. You’re using a Linux distribution which already defaults to Wayland and Firefox runs just fine. That doesn’t, however, mean your version is taking full advantage of the Wayland graphics stack. In fact, your version of Firefox could be running via XWayland, which doesn’t benefit from full Wayland support.
But why do you need full Wayland support? If you’re using a computer that benefits from HiDPI (High Dots Per Inch), the XWayland Firefox won’t honor that, which means you might find certain websites or web fonts are blurrier than they should be. It also means you won’t be able to interact with Firefox via multi-gesture support.
I don’t know about you, but those are features I’d rather not miss out on.
Fortunately, this is Linux, so there’s always a way to solve the problem.
With that in mind, let me show you how to run the Snap version of Firefox in Wayland mode.
How to switch Firefox to Wayland Mode
What you’ll need: To make this work, you’ll need a running Linux distribution that defaults to the Wayland communication protocol (such as Ubuntu 23.04 and Fedora 38). You’ll also need a user with sudo privileges. I’ll demonstrate this on Ubuntu Linux, so if your distribution isn’t based on Debian or Ubuntu, you’ll need to alter the installation commands.
Do note: The first method does not work in Ubuntu with the upcoming 23.10 release, as the Snap version of Firefox for that release already defaults to full Wayland support.
sudo add-apt-repository ppa:mozillateam/ppa
sudo apt-get update sudo apt-get install firefox -y
An alternate method
If you find the repository route doesn’t work for you, you might need to take an alternative path to make this work. Fortunately, there’s another method. What you can do is download the latest version of Firefox from the Mozilla download site. Once you’ve done that, follow these steps.
And that’s all there is to it.
If your distribution defaults to the Wayland graphics protocol, but your version of Firefox runs in XWayland compatibility mode, you’ll find taking care of this will improve your overall experience with the web browser.