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

  • 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

  • @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.

  • 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.
    
  • @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.

  • 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!

  • @gigol Recent update to Chromium fixed this.