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

--- Comment #1 from João Paulo <[email protected]> ---
The problem seems to be that the folder at %AppData%\LibreOffice\4\user is a
junction point to %UserProfile%\OneDrive\AppData\LibreOffice (see
https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/mklink).

Directory junction points (that can be created by unprivileged users) and
directory symbolic links (that can only be created by administrators) are
useful for redirecting a folder to another location.  In this case, the
%AppData%\LibreOffice\4\user is redirected to create a synchronization
mechanism for the LibreOffice profile folder between machines, but LibreOffice
can't start if the folder is redirected (either as a junction point or a
symbolic link).

However, Mozilla Firefox installed from Microsoft Store
(https://www.microsoft.com/store/productId/9NZVDKPMR9RD) is able to start and
use its redirected profile folder from %AppData%\Mozilla\Firefox to
%UserProfile%\OneDrive\AppData\Firefox.

It looks like the problem is that LibreOffice, a classic Windows desktop app
which is repackaged into MSIX to be installed from Microsoft Store, is not able
to start and work correctly with a redirected profile folder the same way as
another classic Windows desktop app such as Mozilla Firefox.

So even if it is a Windows bug (because of file/folder redirectors not working
for an app running with the virtualizing restrictions imposed by the Microsoft
Store -- which is odd, as redirectors can be nested), it is possible to
workaround it, as Mozilla Firefox managed to run with the junction folder
redirector and any other redirector imposed by the Microsoft Store and sync the
user profile between %AppData%\Mozilla\Firefox and
%LocalAppData%\Local\Packages\Mozilla.Firefox_n80bbvh6b1yt2\LocalCache\Local\Mozilla\Firefox.

If it is impossible to use directly the %AppData%\LibreOffice path from the
MSIX packaged Microsoft Store app, I found documentation pages that can be
useful at:

*
https://learn.microsoft.com/en-us/windows/apps/distribute-through-store/how-to-transition-users-from-your-web-unpackaged-app-to-store-packaged-app#how-to-migrate-data
*
https://learn.microsoft.com/en-us/windows/apps/design/app-settings/store-and-retrieve-app-data

Note that while Microsoft recommends that the Microsoft Store version takes
over the web download version of the app (classic desktop version), including
migrating data from the web download to the Microsoft Store version, Mozilla
Firefox syncs on both ways, allowing both versions to be used on the same
machine without uninstalling the classic desktop version while keeping both
user profile settings synchronized between the two versions (the only
restriction is that only one version can be run at a time, even if both
versions are installed and can be run at the user's will).

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to