DesktopEditors icon indicating copy to clipboard operation
DesktopEditors copied to clipboard

flatpak: Can't run on Wayland

Open ghost opened this issue 1 year ago • 12 comments

This issue is unique.

  • [x] I have used the search tool and did not find an issue describing my bug.

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

ghost avatar Jan 02 '24 10:01 ghost

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.

vigne avatar Jan 30 '24 14:01 vigne

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.

XDmitryK avatar Feb 15 '24 13:02 XDmitryK

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

gmankab avatar Apr 18 '24 11:04 gmankab

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

XDmitryK avatar May 06 '24 12:05 XDmitryK

This issue was closed due no response.

Rita-Bubnova avatar Jun 19 '24 07:06 Rita-Bubnova

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 avatar Jul 03 '24 19:07 Minionflo

Issue still occurring under Arch with KDE 6.1.3

Minionflo avatar Aug 09 '24 13:08 Minionflo

@XDmitryK, please take a look.

Rita-Bubnova avatar Aug 09 '24 13:08 Rita-Bubnova