flathub / org.libreoffice.LibreOffice

https://flathub.org/apps/details/org.libreoffice.LibreOffice
29 stars 18 forks source link

Flatpak version unable to read from /tmp unlike basic version #290

Open johnwuelk opened 1 month ago

johnwuelk commented 1 month ago

The Flatpak Libre Office version is unable to open a file from the /tmp directory but the basic version (from apt) is able to do so. Although the /tmp folder has 777 permissions set and the file has 664, I don't understand why and how the Flatpak LO (installed as system) cannot access tmp.

Fails: flatpak run org.libreoffice.LibreOffice --calc /tmp/file.ods

Current workaround (simply copy the file to a different location that flatpak can access): mkdir -p ~/Downloads/tmp cp /tmp/file.ods ~/Downloads/tmp/ flatpak run org.libreoffice.LibreOffice --calc ~/Downloads/tmp/file.ods

Erick555 commented 1 month ago

Unlike apt version Flatpak is sandboxed and doesn't have access to /tmp. If you want to use /tmp then you needs to give it access manually (there is flatseal tool that allows to do that easily.

This is duplicate of https://github.com/flathub/org.libreoffice.LibreOffice/issues/138

johnwuelk commented 1 month ago

Thanks for the tip with flatseal, but I'm using a bash script which is a more convenient solution for my workflow as I'm opening files from the nnn file manager and do pretty much everything with it.

Sorry for postitng the duplicate issue.