cinny icon indicating copy to clipboard operation
cinny copied to clipboard

Flatpak not working with Wayland

Open Ezwen opened this issue 3 years ago • 5 comments

Describe the bug

When running Cinny as a Flatpak on a desktop running under Wayland (instead of X11), Cinny instantly crashes, with the following line of system log:

segfault at e0 ip 00007f5934a9b144 sp 00007f593094e6b8 error 4 in libX11.so.6.4.0[7f5934a82000+94000]

Reproduction

  1. Run a Fedora 36 GNOME session with Wayland (which is the case per default with the default Fedora 36 flavor)
  2. Install Cinny as a Flatpak
  3. Try to start Cinny

At this point, Cinny does not start, and running journalctl -b | grep -i cinny I can find:

segfault at e0 ip 00007f5934a9b144 sp 00007f593094e6b8 error 4 in libX11.so.6.4.0[7f5934a82000+94000]

Expected behavior

Cinny should start without crashing.

Platform and versions

1. OS: Fedora 36, GNOME, Wayland
2. Browser: N/A (using the desktop version as a Flatpal)
3. Cinny: v2.0.3
4. Homeserver: private

Additional context

This problem does not appear with running GNOME with X11.

Ezwen avatar May 25 '22 13:05 Ezwen

Workaround is to disable the fallback-x11 socket and enable the x11 socket. If you want to do it using a graphical client, this can be done using Flatseal: image

However it would be the best if Cinny supports Wayland - and does not have to run through XWayland.

Until that does not happen, the sockets in the Manifest should probably be updated and pass x11 directly (instead of fallback-x11). Pinging @kfiven here :)

jakobkmar avatar May 26 '22 19:05 jakobkmar

Done. I have removed the wayland socket and revert back to x11.

kfiven avatar May 27 '22 06:05 kfiven

Without Wayland support, Cinny is a blurry mess on my desktop because my screen requires fractional scaling (175%), something that is only supported by Wayland. Is there any update on a timeline for proper Wayland support?

reesericci avatar Jun 15 '22 03:06 reesericci

The reason Flatpak doesn't work well is because there are issues with Tauri<=>Wayland. And we have no control over that.

kfiven avatar Jun 15 '22 14:06 kfiven

That's a real shame to hear.

reesericci avatar Jun 15 '22 23:06 reesericci

should be fixed in 2.2.0

kfiven avatar Sep 17 '22 17:09 kfiven