Are you using libreoffice as a snap? Confined snaps are prevented by default to access .directories so it would explain why libreoffice fails to open the file from ~/.cache (and why it would work here using gedit as a deb)
Are you using libreoffice as a snap? Confined snaps are prevented by default to access .directories so it would explain why libreoffice fails to open the file from ~/.cache (and why it would work here using gedit as a deb)