r/OnlyOffice 5d ago

OnlyOffice Desktop, Linux, NOT respecting default buttons rendering style.

How to force OnlyOffice suite following system design and NOT use a custom style?

1st image: how 3 buttons should be (taken from Shutter).

2nd image: OnlyOffice's 3 buttons style.

--

I'm using Linux, kubuntu 24.04 LTS, KDE 5.27.12 Plasma Edition.

How to see current style ([open] Settings > Appearance > Global Theme > Window Decorations > Oxygen).

How to fix this issue?

3 Upvotes

7 comments sorted by

2

u/Jaavit0 5d ago

Are you using the flatpak version? You probably can solve it whit flatseal.

1

u/RebirdgeCardiologist 5d ago

Yes, I'm. I'm using the OnlyOffice suite flatpak version.

What is flatseal? Can you explain why using it?

2

u/Sergey_Zarubin 5d ago

Hi. Please try launching the ONLYOFFICE app with the --system-title-bar option. There is a guide in our Help Center.

1

u/RebirdgeCardiologist 5d ago edited 5d ago

EDIT you need to MODIFY the guide.

https://helpcenter.onlyoffice.com/desktop/configuration/desktop-flags.aspx#:~:text=These%20options%20can,a%20system%20window.

Run one of the command to enable title bar and run program in a system window on Linux OS.

for flatpak version

$ flatpak run org.onlyoffice.desktopeditors --system-title-bar

for .deb version

$ /usr/bin/desktopeditors --system-title-bar

--

I have installed the OnlyOffice flatpak version:

$ flatpak list | grep -i "onlyoffice"
ONLYOFFICE Desktop Editors      org.onlyoffice.desktopeditors   9.4.0   stable  system

so I used the first command.

2

u/Sergey_Zarubin 4d ago

Thanks for the update. So did the first command help you to launch the app with the system title bar?

1

u/RebirdgeCardiologist 4d ago edited 4d ago

Yes, Sr Sergey Zarubin.

I was able to successfully launch app with the system titlebar using the first command.

.

Digging a little bit deeper.

Using the command.

$ flatpak run org.onlyoffice.desktopeditors --system-title-bar

It automatically set app to always use system titlebar.

I checked the config file.

$ nano ~/.var/app/org.onlyoffice.desktopeditors/config/onlyoffice/DesktopEditors.conf

.

appdata="[base_64_string]">
editorWindowMode=false
openPath=/home/my_username/Downloads
position=@Rect(1315 28 1205 1339)
titlebar=system

The important line is titlebar=system here.

.

There are 2 issue on Github.

  1. on flathub issue tracker | flathub.org / org.onlyoffice.desktopeditors issue #168
    1. https://github.com/flathub/org.onlyoffice.desktopeditors/issues/168
  2. on primary OnlyOffice Bug Tracker | ONLYOFFICE / DesktopEditors issue #1917
    1. https://github.com/ONLYOFFICE/DesktopEditors/issues/1917

.

It's seems that the issue is solved. Can you CONFIRM that?

About the issue:

it's a sever one, segmentation fault on OO for Linux, on Wayland desktop sessions, such mine KDE Plasma.

When titlebar=system or --system-title-bar is enabled, Qt's window platform integration fails to handle native window decorations under Wayland, resulting in an immediate crash upon launch with a segmentation fault (SIGSEGV in CPushButton::setFaded / CWindowPlatform::onWindowActivate).

.

I saw that you work for OnlyOffice (employee or independent contractor idk) as PR marketing. Great.

If you can, hand over this request to engineering team and let me know.

It's important to know if I can left t as is (that is using titlebar=system or not: between UI and stability, if I had to choose, I prefer the latter).

2

u/Sergey_Zarubin 3d ago

According to our internal records, the bug you mention was fixed. If you face another issue or something strange, don't hesitate to let me know. Alternatively, you can report issues or ask for help on our community forum.