I’ve installed LibreOffice, WPS Office as well as OnlyOffice from Flathub. Turns out each of them has different default filesystem access settings:
$ flatpak info --show-permissions org.libreoffice.LibreOffice | grep filesystems filesystems=xdg-run/dconf;host; $ flatpak info --show-permissions org.onlyoffice.desktopeditors | grep filesystems filesystems=xdg-download;xdg-documents;xdg-videos;xdg-pictures;xdg-desktop; $ flatpak info --show-permissions com.wps.Office | grep filesystems filesystems=xdg-download;/media;xdg-videos;xdg-documents;/run/media;xdg-pictures;
So it seems to me like LibreOffice might have too broad permissions, while the other two are too strict. A major pain with OnlyOffice and WPS is that I can’t access the Dropbox folder inside my home directory, or any network shares. I also find it highly confusing as a user that these similar applications have different permissions.
I checked out the Flatpak filesystem permission documentation to figure out what would be appropriate, but it doens’t seem that straight foward. For now I’ve resorted to
sudo flatpak override org.onlyoffice.desktopeditors --filesystem=host; sudo flatpak override com.wps.Office --filesystem=host to “fix” this, but I was wondering:
What would be proper permissions for an office application?