X
Tech
Why you can trust ZDNET : ZDNET independently tests and researches products to bring you our best recommendations and advice. When you buy through our links, we may earn a commission. Our process

'ZDNET Recommends': What exactly does it mean?

ZDNET's recommendations are based on many hours of testing, research, and comparison shopping. We gather data from the best available sources, including vendor and retailer listings as well as other relevant and independent reviews sites. And we pore over customer reviews to find out what matters to real people who already own and use the products and services we’re assessing.

When you click through from our site to a retailer and buy a product or service, we may earn affiliate commissions. This helps support our work, but does not affect what we cover or how, and it does not affect the price you pay. Neither ZDNET nor the author are compensated for these independent reviews. Indeed, we follow strict guidelines that ensure our editorial content is never influenced by advertisers.

ZDNET's editorial team writes on behalf of you, our reader. Our goal is to deliver the most accurate information and the most knowledgeable advice possible in order to help you make smarter buying decisions on tech gear and a wide array of products and services. Our editors thoroughly review and fact-check every article to ensure that our content meets the highest standards. If we have made an error or published misleading information, we will correct or clarify the article. If you see inaccuracies in our content, please report the mistake via this form.

Close

How to run Firefox in Ubuntu's Wayland mode (and why you should)

With the soon-to-be-released Ubuntu 23.10, Firefox will default to Wayland mode. Here's how you can gain the benefits of Wayland mode on Ubuntu and other distributions.
Written by Jack Wallen, Contributing Writer
linux3gettyimages-1187447320
Anadolu Agency/Getty Images

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.

Also: UbuntuDDE weds Deepin Desktop with the latest Ubuntu for a beautiful, user-friendly distro

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. 

Also: How to save your Linux desktop settings in case something goes wrong

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.

1. Open a terminal window

The first thing to do is log into your desktop and open a terminal window (as the only way to handle this is from the command line).

2. Keep the Snap version installed but refresh it to a different channel

You might think this won't work, but it will. In fact, I often keep multiple instances of Firefox on the same machine. So, if you want to keep the Snap version of firefox (and add Wayland support), you can issue the following command:

snap refresh firefox --channel=latest/stable/ubuntu-23.10

3. Add the official Mozilla repository

We can now add the official Mozilla repository with the command:

sudo add-apt-repository ppa:mozillateam/ppa

4. Update and install

We can now update apt and install Firefox with the following commands:

sudo apt-get update
sudo apt-get install firefox -y

5. Verify Wayland support

Once the installation is complete, you can verify Firefox includes Wayland support by opening the web browser and typing about:support in the address bar. Scroll down until you see Window Protocol, where you should see wayland listed.

Also: Thinking about switching to Linux? 9 things you need to know

Wayland support as shown in Firefox.

If you see X11 here, your system probably doesn't use the Wayland protocol.

Jack Wallen/ZDNET

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.

1. Open your file manager

Open your default file manager and navigate to the Downloads directory (or wherever you saved the Firefox file). 

2. Extract the file

Right-click the downloaded file and select Extract Here. This will create a new folder named firefox.

The Nautilus right-click menu.

Extracting the Firefox file to the current directory.

Jack Wallen/ZDNET

3. Run Firefox

To run Firefox with this method, just double-click the Firefox executable and the browser will open. You can then pin the browser to your dock or menu.

Also: This tool is my new favorite way to monitor and manage apps on the Linux desktop

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.

Editorial standards