Results 1 to 4 of 4

Thread: Firefox and Wayland

  1. #1
    Join Date
    Apr 2016
    Location
    North America
    Posts
    537

    Default Firefox and Wayland

    Both Chrome and Firefox use XWayland
    https://medium.com/@bugaevc/how-to-e...y-8191b506ab9a

    `about:support` in the firefox URL entry brings up a page that shows "Window Protocol: x11"

    You don't need Firefox nightly. The stable version 66.0.3 works fine with wayland. What you do need to do is set the environmental variable for it to work with wayand. You can either launch firefox with "env GDK_BACKEND=wayland firefox" or else define the variable for your system. For that, you will want to use "MOZ_ENABLE_WAYLAND=1".
    https://bbs.archlinux.org/viewtopic.php?id=246179

    The first option gives an error and firefox doesn't load. I tried putting `export MOZ_ENABLE_WAYLAND=1` in "~/.bashrc" but that didn't seem to change anything.

    It looks like maybe you need to compile it with support. https://aur.archlinux.org/packages/firefox-wayland/

    > Do we need to use: ac_add_options --with-gl-provider=EGL if we apply this
    > patch?

    EGL backend is enabled by default on Wayland build so you don't need to use this option.
    https://bugzilla.mozilla.org/show_bug.cgi?id=1434574

    I guess whatever environment that is being used to build the opensuse package is using x11.

  2. #2
    Join Date
    Apr 2016
    Location
    North America
    Posts
    537

    Default Re: Firefox and Wayland



    It turns out that GNOME Classic uses x11. >_<

    I switched to "regular" GNOME and now it shows "Window Protocol: wayland"

  3. #3
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,296
    Blog Entries
    2

    Default Re: Firefox and Wayland

    Not sure what this post may be saying is required...

    I would've been surprised to learn that any application needed special Wayland configuration.
    Firefox supposedly has shipped with Wayland support enabled since approx Nov 2018 (according to various announcements and posts).
    As for a system with Wayland enabled, the following ArchWiki article describes what is required to ensure Firefox Wayland support, assuming you're running Weston (AFAIK although Weston alternatives are being developed, they're not widely installed), the following ArchWiki article describes a couple weston.ini files (I assume are widely distributed by default).
    If there is a reason to implement Wayland as an X11 server instead of natively as a system service, the following ArchWiki and other articles describe how that might be done

    https://wiki.archlinux.org/index.php/Wayland

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  4. #4
    Join Date
    Apr 2016
    Location
    North America
    Posts
    537

    Default Re: Firefox and Wayland

    I don't think anything is required, other than your system actually using wayland. ;-]
    I just didn't realize GNOME Classic uses x11.

    I removed the .bashrc entry and it still works.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •