I have sometimes seen strange behaviour from programs that haven’t yet been updated for Wayland. I don’t know if this is the case for Onlyoffice, but you could try unsetting $WAYLAND_DISPLAY before running it. So, assuming the command to run it is onlyoffice: WAYLAND_DISPLAY= onlyoffice
(note the space after the equals sign).
I also tried forcing Onlyoffice to use XWayland before using the GDK_BACKEND=X11 environment variable, but this also didn’t change the situation.
Notably, this only happens on my Gnome Wayland notebook, while on my KDE Wayland desktop, ONLYOFFICE starts without problems without any additional configuration.
You’re sure about that?
If i remove the space (which @beermad explicitly mentioned), this command doesn’t do anything at all.
I think it’s just setting the variable WAYLAND_DISPLAY to onlyoffice-desktopeditors then…
It specifically needs the space. Because that’s telling the shell to un-set the $WAYLAND_DISPLAY environment variable (or to be precise, set it to an empty string. Shorthand for WAYLAND_DISPLAY="".
Not completely fixed, at least for me.
The difference now is that I can open onlyoffice-desktopeditors again, but as soon as I select any document to open it in the actual (word-) editor, it crashes again.
GDK_BACKEND=X11 onlyoffice-desktopeditors 1 ✘
(DesktopEditors:115736): Gtk-WARNING **: 12:50:01.473: gtk_disable_setlocale() must be called before gtk_init()
QXcbConnection: XCB error: 8 (BadMatch), sequence: 795, resource id: 14680127, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 811, resource id: 14680127, major code: 130 (Unknown), minor code: 3
zsh: segmentation fault (core dumped) GDK_BACKEND=X11 onlyoffice-desktopeditors
~ GDK_BACKEND=X11 onlyoffice-desktopeditors SEGV ✘
~ WAYLAND_DISPLAY= onlyoffice-desktopeditors INT ✘
(DesktopEditors:115952): Gtk-WARNING **: 12:50:16.851: gtk_disable_setlocale() must be called before gtk_init()
QXcbConnection: XCB error: 8 (BadMatch), sequence: 771, resource id: 14680127, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 787, resource id: 14680127, major code: 130 (Unknown), minor code: 3
zsh: segmentation fault (core dumped) WAYLAND_DISPLAY= onlyoffice-desktopeditors
~ WAYLAND_DISPLAY= onlyoffice-desktopeditors SEGV ✘ 3s
(DesktopEditors:116120): Gtk-WARNING **: 12:50:22.466: gtk_disable_setlocale() must be called before gtk_init()
QXcbConnection: XCB error: 8 (BadMatch), sequence: 771, resource id: 14680127, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 787, resource id: 14680127, major code: 130 (Unknown), minor code: 3
zsh: segmentation fault (core dumped) WAYLAND_DISPLAY= onlyoffice-desktopeditors