Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
johnwuelk opened this issue May 18, 2024 · 2 comments
Open

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

johnwuelk opened this issue May 18, 2024 · 2 comments

Comments

@johnwuelk
Copy link

johnwuelk commented May 18, 2024

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
Copy link
Contributor

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 #138

@johnwuelk
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants