Status of Wayland support and how to enable
-
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 :x11Googled 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:
- Is Wayland supported? (native Wayland, of course - not XWayland emulation)
- How to enable it?
Thanks,
Andrej -
A Former User 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-usedcheck this, please.
-
afalout 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. -
webninja 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.
-
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!
-
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."
-
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.