ONLYOFFICE / DesktopEditors

An office suite that combines text, spreadsheet and presentation editors allowing to create, view and edit local documents
https://www.onlyoffice.com
Other
2.81k stars 321 forks source link

flatpak: Can't run on Wayland #1453

Open ghost opened 9 months ago

ghost commented 9 months ago

This issue is unique.

Operating System

Linux (RPM package)

Version information

7.5.1

Expected Behavior

I expected OnlyOffice Desktop Editors to run natively on Wayland without any problems

Actual Behavior

If I remove socket x11 to make OnlyOffice run natively on Wayland, I get an error message. Even after adding electron arguments (--enable-features and --ozone-platform) to make it to run on Wayland.

Reproduction Steps

  1. In Flatseal, turn off socket=x11
  2. Try to run OnlyOffice Desktop Editors

Additional information

$ flatpak run org.onlyoffice.desktopeditors                                                            
qt.qpa.screen: QXcbConnection: Could not connect to display 
Could not connect to any X display.
$ flatpak run org.onlyoffice.desktopeditors --enable-features=UseOzonePlatform --ozone-platform=wayland
qt.qpa.screen: QXcbConnection: Could not connect to display 
Could not connect to any X display.

I also tried running it with different environment variables, but it did not work.

XDG_SESSION_TYPE=wayland
QT_QPA_PLATFORM=wayland

Also, I'm on Gnome 45.2

vigne commented 8 months ago

I can confirm this behavior on Fedora Linux 39 running Gnome 45.3 and OnlyOffice 7.5.1

When using X11 the OnlyOffice windows flicker heavily (as in turns black every few seconds). With other Flatpak applications, this could be fixed by forcing them to Wayland but unfortunately not for OnlyOffice.

XDmitryK commented 7 months ago

We tried run onlyoffice on Fedora 39 KDE with Wayland and app work without errors. I'll try to install the version Fedora on Gnome.

gmankab commented 5 months ago

We tried run onlyoffice on Fedora 39 KDE with Wayland and app work without errors. I'll try to install the version Fedora on Gnome.

you probably runned it via xwayland

try disable socket=x11 in flatseal and run it on native wayland

XDmitryK commented 4 months ago

@gmankab I disabled socket=x11 it using tchx84 and OO working fine on Fedora 39

Rita-Bubnova commented 3 months ago

This issue was closed due no response.

Minionflo commented 3 months ago

I have the same problem. Im using Debian Testing with KDE Plasma 5.27.11 on wayland. I tried the env vars QT_QPA_PLATFORM=wayland and QT_QPA_PLATFORM=xcb with the env var ELECTRON_OZONE_PLATFORM_HINT=auto but nothing worked

Minionflo commented 1 month ago

Issue still occurring under Arch with KDE 6.1.3

Rita-Bubnova commented 1 month ago

@XDmitryK, please take a look.

TheRsKing commented 1 month ago

can confirm

Bammede commented 1 month ago

OnlyOffice is not working on Wayland Fedora Silverblue

mtill14 commented 3 weeks ago

Confirmed OnlyOffice flatpak still not working on Wayland on Fedora (server install with WM built up, flatseal settings to use wayland but not x11 or x11-fallback)

YuvrajTalukdar commented 2 weeks ago

Can confirm this, OnlyOffice Flatpak not working under wayland. I disabled x11 with flatseal, got the following error:- flatpak run org.onlyoffice.desktopeditors F: Not sharing "/usr/share/icons" with sandbox: Path "/usr" is reserved by Flatpak qt.qpa.screen: QXcbConnection: Could not connect to display Could not connect to any X display.

Tried launching with flatpak run org.onlyoffice.desktopeditors --enable-features=UseOzonePlatform --ozone-platform=wayland while enabling x11 on Flatseal

It starts with 2 window, one is a blank window with the minimize, maximize and close button, and the other is the onlyoffice window, on checking with xeyes the blank window is running under xwayland and the other onlyoffice window under wayland.

The output from my terminal:-

flatpak run org.onlyoffice.desktopeditors --enable-features=UseOzonePlatform --ozone-platform=wayland F: Not sharing "/usr/share/icons" with sandbox: Path "/usr" is reserved by Flatpak Qt: Session management error: None of the authentication protocols specified are supported QXcbConnection: XCB error: 8 (BadMatch), sequence: 780, resource id: 29360191, major code: 130 (Unknown), minor code: 3 QXcbConnection: XCB error: 8 (BadMatch), sequence: 798, resource id: 29360191, major code: 130 (Unknown), minor code: 3 QXcbConnection: XCB error: 8 (BadMatch), sequence: 947, resource id: 29360191, major code: 130 (Unknown), minor code: 3 QXcbConnection: XCB error: 8 (BadMatch), sequence: 1355, resource id: 29360191, major code: 130 (Unknown), minor code: 3 QXcbConnection: XCB error: 8 (BadMatch), sequence: 1436, resource id: 29360191, major code: 130 (Unknown), minor code: 3 QXcbConnection: XCB error: 8 (BadMatch), sequence: 1817, resource id: 29360191, major code: 130 (Unknown), minor code: 3 QXcbConnection: XCB error: 8 (BadMatch), sequence: 1846, resource id: 29360191, major code: 130 (Unknown), minor code: 3 QXcbConnection: XCB error: 8 (BadMatch), sequence: 1874, resource id: 29360191, major code: 130 (Unknown), minor code: 3 QXcbConnection: XCB error: 8 (BadMatch), sequence: 1926, resource id: 29360191, major code: 130 (Unknown), minor code: 3 QXcbConnection: XCB error: 8 (BadMatch), sequence: 2615, resource id: 29360191, major code: 130 (Unknown), minor code: 3 QXcbConnection: XCB error: 8 (BadMatch), sequence: 2642, resource id: 29360191, major code: 130 (Unknown), minor code: 3 QXcbConnection: XCB error: 8 (BadMatch), sequence: 2670, resource id: 29360191, major code: 130 (Unknown), minor code: 3 QXcbConnection: XCB error: 8 (BadMatch), sequence: 2709, resource id: 29360191, major code: 130 (Unknown), minor code: 3 QXcbConnection: XCB error: 8 (BadMatch), sequence: 2749, resource id: 29360191, major code: 130 (Unknown), minor code: 3 QXcbConnection: XCB error: 8 (BadMatch), sequence: 2776, resource id: 29360191, major code: 130 (Unknown), minor code: 3 QXcbConnection: XCB error: 8 (BadMatch), sequence: 2804, resource id: 29360191, major code: 130 (Unknown), minor code: 3 The 2 OnlyOffice windows:-

image