brunofin / cohesion

Notion client for Linux
https://flathub.org/apps/details/io.github.brunofin.Cohesion
MIT License
34 stars 1 forks source link

Add Wayland support #22

Open brunofin opened 3 months ago

philippcou commented 3 months ago

Since I updated yesterday, the App crashes on startup. I have the Electron Environment Variable set that forces apps to use Wayland, maybe that makes a difference.

--Jul 03 08:55:15 fedora org.gnome.Software.desktop[5018]: [3:0703/085515.097615:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory Jul 03 08:55:15 fedora org.gnome.Software.desktop[5063]: LaunchProcess: failed to execvp: Jul 03 08:55:15 fedora org.gnome.Software.desktop[5063]: xdg-settings Jul 03 08:55:15 fedora org.gnome.Software.desktop[5018]: [3:0703/085515.196711:ERROR:wayland_connection.cc(197)] Failed to connect to Wayland display: No such file or directory (2) Jul 03 08:55:15 fedora org.gnome.Software.desktop[5018]: [3:0703/085515.196719:ERROR:ozone_platform_wayland.cc(264)] Failed to initialize Wayland platform Jul 03 08:55:15 fedora org.gnome.Software.desktop[5018]: [3:0703/085515.196722:ERROR:env.cc(258)] The platform failed to initialize. Exiting. Jul 03 08:57:08 fedora org.gnome.Software.desktop[6068]: [3:0703/085708.593531:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory Jul 03 08:57:08 fedora org.gnome.Software.desktop[6111]: LaunchProcess: failed to execvp: Jul 03 08:57:08 fedora org.gnome.Software.desktop[6111]: xdg-settings Jul 03 08:57:08 fedora org.gnome.Software.desktop[6068]: [3:0703/085708.691951:ERROR:wayland_connection.cc(197)] Failed to connect to Wayland display: No such file or directory (2) Jul 03 08:57:08 fedora org.gnome.Software.desktop[6068]: [3:0703/085708.691960:ERROR:ozone_platform_wayland.cc(264)] Failed to initialize Wayland platform Jul 03 08:57:08 fedora org.gnome.Software.desktop[6068]: [3:0703/085708.691964:ERROR:env.cc(258)] The platform failed to initialize. Exiting.

brunofin commented 3 months ago

Because the flatpak package does not ship with Wayland socket permissions, you probably need to use Flatseal and change the permissions.

Try to remove x11, and add both wayland and fallback-x11 like the screenshot below:

image