Cadastre-se agora para um orçamento mais personalizado!

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

25 de setembro de 2023 Hi-network.com
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 updatesudo 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 typingabout:supportin the address bar. Scroll down until you see Window Protocol, where you should seewaylandlisted.

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

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

Jack Wallen/

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.

Extracting the Firefox file to the current directory.

Jack Wallen/

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.

Linux

The best Linux laptops for consumers and developersWant to save your aging computer? Try these 5 Linux distributionsThe best distros for beginnersHow to enable Linux on your Chromebook (and why you should)
  • The best Linux laptops for consumers and developers
  • Want to save your aging computer? Try these 5 Linux distributions
  • The best distros for beginners
  • How to enable Linux on your Chromebook (and why you should)

tag-icon Tags quentes : Tecnologia Nosso processo Serviços & Software Sistemas Operacionais LINUX

Copyright © 2014-2024 Hi-Network.com | HAILIAN TECHNOLOGY CO., LIMITED | All Rights Reserved.