<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - LibreOffice Vanilla fails to open some files from StartCenter"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=136736#c12">Comment # 12</a>
on <a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - LibreOffice Vanilla fails to open some files from StartCenter"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=136736">bug 136736</a>
from <span class="vcard"><a class="email" href="mailto:tml@iki.fi" title="Tor Lillqvist <tml@iki.fi>"> <span class="fn">Tor Lillqvist</span></a>
</span></b>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>