flathub / org.onlyoffice.desktopeditors

https://flathub.org/apps/details/org.onlyoffice.desktopeditors
17 stars 9 forks source link

No access to ~/Documents folder and cannot open files from other drives #82

Open ghost opened 1 year ago

ghost commented 1 year ago

OnlyOffice on flatpak does not use xdg-desktop-portal for its file picker, so it does not have access to certain important directories by default. It's where I usually store my documents into. Also I cannot access documents from my secondary internal hard drive (which is mounted on /var/datadrive. Opening one with Gnome File Manager just shows an empty document.

As a workaround, I have given it access to xdg-pictures, xdg-download, xdg-videos, and xdg-documents. This does not fix the secondary HDD issue but it allows me to easily access other documents.

I really like using OnlyOffice but its inability to simply open a document has been kind of ticking me off.

I'm using Fedora Silverblue 36.

marksalendu commented 1 year ago

Same issue on Arch (Endeavour OS). When open a document/ppt/spreadsheet by double-click the file, it shows blank documents. It only works, when try to open any document from inside OnlyOffice. (Open OnlyOffice > click on open local file > select file)

FdelS commented 1 year ago

@marksalendu Adding permissions to the application to read or write the desired folders works for me. After giving permissions, the documents open directly by double click. See this post for how to add them via terminal, you can also use software to help you do it easily. Ask ubuntu post: https://askubuntu.com/a/1094903 flatpak Sandbox documentation: https://docs.flatpak.org/en/latest/sandbox-permissions.html

Maybe your case is different, but I leave the comment in case it helps.

Best regards.