notion-snap icon indicating copy to clipboard operation
notion-snap copied to clipboard

Enable wayland support

Open mrpandey opened this issue 3 years ago • 0 comments

My system runs Ubuntu 21.10 with sway, a Wayland-based DE. I was able to run notion-snap on my system but it runs using XWayland instead of pure wayland. As a result, the fonts, images, etc. appear blurred on my HiDPI display.

I tried the following, but had no luck

$ notion-snap --enable-features=UseOzonePlatform --ozone-platform=wayland
[35497:1029/001028.959075:ERROR:wayland_connection.cc(209)] Failed to connect to Wayland display
[35497:1029/001028.959121:ERROR:ozone_platform_wayland.cc(226)] Failed to initialize Wayland platform
[35497:1029/001028.959126:ERROR:env.cc(225)] The platform failed to initialize.  Exiting.
Segmentation fault (core dumped)

I am not sure why it wasn't able to connect to wayland display since WAYLAND_DISPLAY and other environment variables are set properly in my system, and other Wayland apps work fine.

mrpandey avatar Oct 28 '22 19:10 mrpandey