Run Firefox on Wayland?

Do you all run firefox without set any Environment Variable or do you chill it to run natively on wayland?

By default it seems still not working on wayland and always uses xwayland if i am correct?

You can check in firefox with about:support page …

can be forced set in .bash_profile

if [ "$XDG_SESSION_TYPE" == "wayland" ]; then
    export MOZ_ENABLE_WAYLAND=1
fi

I use Wayand and was able to run FF natively without issue. I have since switched to Waterfox and no issues there either. Same story with ungoogled-chromium.

Setting $MOZ_ENABLE_WAYLAND all the way.

But it is probably more noticeable that FF looks “off” if you use fractional scaling.

That said it seems to be the default soon anyway: Firefox Is Going To Try And Ship With Wayland Enabled By Default … Firefox 121 is due for release around 19 December

1 Like

So still needs to force it for now… was not sure

Only saw that if i do not set it to run on wayland itself i have per example only low resolutioons on yt videos… after force wayland i can get full resolutions in 1080…

1 Like

Firefox? What about Xeyes? :eyes:

1 Like

this is what i wanted to see anyway… so we do not need to do anyrhing only wait for it…as i was thinking aleady to set the option for Gnome installs…

2 Likes

Wow, what a novel concept, thx Wayland… :rofl:

must say this was on ARM… mali GPU thingy

This is how I do it:

Firefox - Add environment variable to enable Wayland Hardware Acceleration in Firefox and Thunderbird

To makes sure Firefox is using Wayland for Hardware Acceleration you can add the environment variable “MOZ_ENABLE_WAYLAND=1”.

In EndeavourOS:

(1) Make the environment directory:

mkdir ~/.config/environment.d

(2) Create the envvars.conf:

nano ~/.config/environment.d/envvars.conf`

(3) Add the following line to the ~/.config/environment.d/envvars.conf file:

MOZ_ENABLE_WAYLAND=1

(4) Reboot

(5) Launch Firefox and verify Windows Protocol is set to ‘Wayland’:

(a) Navigate to “about:support”`

(b) Look for “Windows Protocol” = wayland `

Source:

1 Like

I’m using Firefox Nightly & it’s native Wayland…works very well for me…

Name 	Firefox
Version 122.0a1

Window Protocol	wayland
Desktop Environment	gnome
1 Like

Thanks for this. It works on wayland for me now!

Perhaps these commands need to be put on wiki?

It is already :wink:

https://wiki.archlinux.org/title/Firefox#Wayland

5 Likes

Firefox with Wayland enabled is running great on my old laptop but kworker run up on my new laptop with FF. Looking forward to FF 121.

as far as we can see there will be no need to add it to the wiki… if it will get in default soon anyway.

we are on firefox 120.0.1 in repo and here:
https://archive.mozilla.org/pub/firefox/releases/121.0/
released on 18.12. (repo is also marked outdated already)
https://archlinux.org/packages/extra/x86_64/firefox/

2024 the year of wayland ? :wink: :tada: :teapot:

1 Like

My Nightly Build is new:

Name 	Firefox
Version 	123.0a1
Build ID 	20231219152636

So 122 should be available early next year…

i do mainly use only nightly here anyway… but on i3 so no way to check wayland

I use way land since version 9x don’t remember which one, it has improved a lot since then and had being using it with a local firefox.desktop file to launch with wayland by default

Well—I’m a Gnome user & try to use beta software as much was possible…So I’ll try to chime in when the topic falls in my area…Have a Great Evening (or morning as it may…)