Onlyoffice can be used with xdg-desktop-portal file picker if launched with --xdg-desktop-portal=default. This makes it fit better with any desktop environment.
See https://github.com/ONLYOFFICE/DesktopEditors/issues/712
I'm proposing this sed oneliner change to prepare function that appends --xdg-desktop-portal=default for every instance of Exec= in the .desktop file.
# Enable xdg-desktop-portal file chooser dialogs
sed -i 's|/usr/bin/onlyoffice-desktopeditors|/usr/bin/onlyoffice-desktopeditors --xdg-desktop-portal=default|g' \
"onlyoffice-${pkgver}/pkg/usr/share/applications/"*.desktop
Pinned Comments
Antiz commented on 2024-10-17 18:28 (UTC)
This package ships the OnlyOffice Desktop Editor, not the OnlyOffice Document Server.
Please, make sure that you are referring to the correct software when flagging this package out of date :)