Score:0

Libreoffice don't open files outside Document folder

kr flag

After Ubuntu upgrade, Libreoffice stops to open files outside home Document folder.

Ubuntu 18.04.5 Libreoffice installed via snap

libreoffice --version
LibreOffice 7.2.0.4 ce769e3009755dcf0082844e386f5dca4c8ecb2f

Trying to call it from console (to see if there is any error messagem):

cd ~
echo "I have full access to the folder" > file.txt
libreoffice.calc file.ods

It halts with a Dialog saying Error dialog

Translated to English: "It was not possible to create a lock file to exclusive access by LibreOffice, by missing permissions to create a lock file on the choosen place"

I've tried to uninstall Libreoffice twice and did multiple attempts via ppa and also from official repository. Same error :(

Libreoffice 6 works fine. The problem just occurs with 7.1 version and above.

I've also tried this solution: askubuntu.com/questions/643382/libre-office-wont-open but the problem persists. In fact, a new config file was not created after I deleted it.

How can I debug to find the permission problem ?

ar flag
Please [edit your question](https://askubuntu.com/posts/1363797/edit) and add the information in the above comment in your question. The comments are mainly for us to ask for clarifications and point out issues like this. You should update your question.
Nmath avatar
ng flag
Does the problem persist when you open the application directly, instead of from a file? Also, where are these files located, exactly?
user535733 avatar
cn flag
Where in the filesystem are you trying to save a file? You lack permission to write to many locations outside your /home/$YOU fir.
raj avatar
cn flag
raj
Maybe it's because LibreOffice is installed as snap package. Snap applications can have limited access to filesystem. Try uninstalling snap version of LibreOffice and install regular .deb package version.
kr flag
Yes. Same problem occurs using GUI. I have full permission to the folder where I'm trying to access.
kr flag
I've tried already using apt install and via PPA install.
Terrance avatar
id flag
Do you have full permissions to the parent folder that you are trying to access? Subfolders and files inherit the parent folder permissions.
kr flag
Yes Terrance. I have full access.
Terrance avatar
id flag
Can you please paste that info into your question?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.