Yet another thread on Firefox + VAAPI

Good you found it.
BTW … my preferred way of changing the firefox default env vars is like this:

  • Copy firefox.desktop file from /usr/share/applications to ~/.local/share/applications

  • Edit each Exec line to contain your values like this (I also set some for plasma integration):

Exec=/usr/bin/sh -c "MOZ_X11_EGL=1 GTK_USE_PORTAL=1 /usr/lib/firefox/firefox %u"
Exec=/usr/bin/sh -c "MOZ_X11_EGL=1 GTK_USE_PORTAL=1 /usr/lib/firefox/firefox --new-window %u"
Exec=/usr/bin/sh -c "MOZ_X11_EGL=1 GTK_USE_PORTAL=1 /usr/lib/firefox/firefox --private-window %u"

Then whenever you start FF from a key combo or link or menu … it will use your variables.
(and you arent editing a system file, which also means it wont overwrite during an update etc)