• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    Status of Wayland support and how to enable

    Opera for Linux
    7
    10
    8605
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • afalout
      afalout last edited by

      Hello all,

      KUbuntu 21.04

      xlsclients command shows Opera running on Xwayland emulation, not native Wayland.

      snap connections opera shows:
      ...
      wayland opera:wayland :wayland -
      x11 opera:x11 :x11

      Googled for a while, but did not find any info on weather Opera even supports Wayland? Opera help web site does not even mention it...

      So:

      1. Is Wayland supported? (native Wayland, of course - not XWayland emulation)
      2. How to enable it?

      Thanks,
      Andrej

      Reply Quote 1
        A Former User 1 Reply Last reply
      • A Former User
        A Former User @afalout last edited by

        @afalout said in Status of Wayland support and how to enable:

        native Wayland

        https://wiki.archlinux.org/title/Wayland
        https://unix.stackexchange.com/questions/202891/how-to-know-whether-wayland-or-x11-is-being-used

        check this, please.

        Reply Quote 0
          afalout 1 Reply Last reply
        • afalout
          afalout @Guest last edited by

          @karbonat - Question is about >>Opera<< support for Wayland.

          Not how to enable Wayland as such. Which I of course already did, and should be obvious from my post.

          Thanks,
          Andrej.

          Reply Quote 0
            webninja 1 Reply Last reply
          • webninja
            webninja @afalout last edited by

            More and more people are running Wayland and Firefox supports Wayland without the X compatibility layer.

            Running opera-developer 79.0.4135.0 I get:

            [1359809:1359809:0803/164440.133269:ERROR:browser_main_loop.cc(1409)] Unable to open X display.
            
            Reply Quote 0
              sgunhouse 1 Reply Last reply
            • sgunhouse
              sgunhouse Moderator Volunteer @webninja last edited by

              @webninja Opera is based on Chromium; as such, it will have Wayland support when Chrome does. Firefox is not based on Chromium and can do what they want in that regard.

              Reply Quote 0
                1 Reply Last reply
              • gigol
                gigol last edited by

                It seems Opera does support wayland perfectly fine, you can execute it as such:

                opera --enable-features=UseOzonePlatform --ozone-platform=wayland %U
                

                Though it seems when editing opera.desktop it doesn't has the desired effect, put this here ~/.local/share/applications/opera.desktop:

                [Desktop Entry]
                Version=1.0
                Name=Opera
                GenericName=Web browser
                Comment=Fast and secure web browser
                TryExec=opera
                Exec=opera --enable-features=UseOzonePlatform --ozone-platform=wayland %U
                Terminal=false
                Icon=opera
                Type=Application
                Categories=Network;WebBrowser;
                MimeType=text/html;text/xml;application/xhtml_xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;application/x-opera-download;
                Actions=new-window;new-private-window;
                
                [Desktop Action new-window]
                Name=New Window
                Exec=opera --new-window --enable-features=UseOzonePlatform --ozone-platform=wayland
                TargetEnvironment=Unity
                
                [Desktop Action new-private-window]
                Name=New Private Window
                Exec=opera --incognito --enable-features=UseOzonePlatform --ozone-platform=wayland
                TargetEnvironment=Unity
                

                Hope that helps!

                Reply Quote 0
                  sgunhouse 1 Reply Last reply
                • sgunhouse
                  sgunhouse Moderator Volunteer @gigol last edited by

                  @gigol Recent update to Chromium fixed this.

                  Reply Quote 0
                    1 Reply Last reply
                  • rgplayzmc
                    rgplayzmc last edited by rgplayzmc

                    Set this flag to "Wayland".

                    [opera://flags/#ozone-platform-hint]

                    Reply Quote 3
                      1 Reply Last reply
                    • rgplayzmc
                      rgplayzmc last edited by

                      If for whatever reason your Opera session runs under XWayland (the nested X11 server for Wayland), set the (opera://flags/#ozone-platform-hint) flag to "Wayland."

                      Reply Quote 0
                        1 Reply Last reply
                      • 0xs0m
                        0xs0m last edited by
                        opera --enable-features=UseOzonePlatform --ozone-platform=wayland
                        [20725:20725:0422/110332.083236:ERROR:wayland_connection.cc(200)] Failed to connect to Wayland display: No such file or directory (2)
                        [20725:20725:0422/110332.083262:ERROR:ozone_platform_wayland.cc(264)] Failed to initialize Wayland platform
                        [20725:20725:0422/110332.083264:ERROR:env.cc(257)] The platform failed to initialize.  Exiting.
                        

                        Opera does not seem to detect the Wayland Display on the other hand chromium works just fine.

                        Reply Quote 1
                          1 Reply Last reply
                        • First post
                          Last post

                        Computer browsers

                        • Opera for Windows
                        • Opera for Mac
                        • Opera for Linux
                        • Opera beta version
                        • Opera USB

                        Mobile browsers

                        • Opera for Android
                        • Opera Mini
                        • Opera Touch
                        • Opera for basic phones

                        • Add-ons
                        • Opera account
                        • Wallpapers
                        • Opera Ads

                        • Help & support
                        • Opera blogs
                        • Opera forums
                        • Dev.Opera

                        • Security
                        • Privacy
                        • Cookies Policy
                        • EULA
                        • Terms of Service

                        • About Opera
                        • Press info
                        • Jobs
                        • Investors
                        • Become a partner
                        • Contact us

                        Follow Opera

                        • Opera - Facebook
                        • Opera - Twitter
                        • Opera - YouTube
                        • Opera - LinkedIn
                        • Opera - Instagram

                        © Opera Software 1995-2025