flathub / org.onlyoffice.desktopeditors

https://flathub.org/apps/details/org.onlyoffice.desktopeditors
17 stars 9 forks source link

Probably enforce QT_QPA_PLATFORM="xcb"? #57

Open fabiscafe opened 2 years ago

fabiscafe commented 2 years ago

Hi. Currently the desktop editors don't support wayland. Because all other apps do have native support I'm setting my QPA_Platform to QT_QPA_PLATFORM="wayland;xcb"

This should provide a fallback to xcb, if there is no wayland support available - https://www.qt.io/blog/2018/05/29/whats-new-in-qt-5-11-for-the-wayland-platform-plugin This however doesn't work with onlyoffice

flatpak run org.onlyoffice.desktopeditors
This application failed to start because it could not find or load the Qt platform plugin "wayland;xcb"
in "".

Available platform plugins are: linuxfb, minimal, offscreen, vnc, xcb.

Reinstalling the application may fix this problem.

On top of that, the wayland socket is enabled, while not working: https://github.com/flathub/org.onlyoffice.desktopeditors/blob/master/org.onlyoffice.desktopeditors.json#L13 (disabling it wont work, as the QT_QPA_PLATFORM env leaks in and tries to load wayland)

Steps to reproduce:

  1. Be on a wayland compositor
  2. export QT_QPA_PLATFORM="wayland:xcb"
  3. flatpak install org.onlyoffice.desktopeditors
  4. flatpak run org.onlyoffice.desktopeditors

Related issues: https://github.com/ONLYOFFICE/DesktopEditors/issues/382

p-fruck commented 2 months ago

would be great to have xcb fixed, otherwise the title bar is not scaled properly and is just massive (Fedora/Gnome)