[Libreoffice-bugs] [Bug 136736] LibreOffice Vanilla fails to open some files from StartCenter

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Jan 19 12:07:22 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=136736

--- Comment #12 from Tor Lillqvist <tml at iki.fi> ---
Alex, so is this what happened?

- Initially, the document in question does not appear in the Start Centre in
TDF LibreOffice and not in the Start Centre of LibreOffice Vanilla either. This
is important to check, in order for this test to be relevant.

- You open the document in TDF LibreOffice, and then quit it.

- If you run TDF LibreOffice again, the document (naturally) shows up in Start
Centre, and it opens if you click on that. Quit TDF LibreOffice again.

- Now you run LibreOffice Vanilla. The document appears in that StartCentre,
too (but does not open). That is appears here would be a bit surprising.

I had thought that LibreOffice Vanilla uses a separate "profile" directory than
the non-sandboxed TDF LibreOffice and that thus the list of recent files is
separate, too. But if the above happens, they apparently share the list, but
then LibreOffice Vanilla does not have access to files that have been opened
earlier only in TDF LibreOffice.

Another possibility is that the profiles (including the list of recent
documents) are separate, as expected, but if you edit a document in LibreOffice
Vanilla, and save it, LibreOffice Vanilla saves the security-scoped bookmark
for it. If you then open the same document in TDF LibreOffice, and then save
it, the security-scoped bookmark for the file that LibreOffice Vanilla has
stored is no longer valid, because it is in a sense no longer the same
document. It might have the exact same pathname, but when you have saved it
inbetween in another app (TDF LibreOffice), the file has actually been removed
and a new file with the same pathname created. Thus it is actually a different
file.

Anyway, the solution to the problem would probably be to make sure in a
sandboxed LibreOffice to ignore entries in the recent documents list that can't
be accessed anyway. Not much code is needed for that. Then the Start Centre
would not show documents that aren't actually openable from it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210119/85435c2f/attachment.htm>


More information about the Libreoffice-bugs mailing list