Details
-
Suggestion
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
5.15.7
-
None
Description
We have packaged (msix) and published on the new Windows App Store the (Dev Version) Banana Accounting Application that use QT 5.15.7 commercial libraries.
see app store page: https://www.microsoft.com/en-us/p/banana-accounting/9nlmbttptxhg#activetab=pivot:overviewtab
Everything seams to works fine, but on a computer running Window11 dev preview version there is a problem when saving the file with QSaveFile in a temporary \AppData\directory.
The new Windows App Store keep the AppData separated from the norma AppData. For every application it creates a “shadow” roaming data place under \AppData\Local\packages\ where the appdata is stored. This data appears to the application as saved in the normal \AppData\roaming place.
See: https://docs.microsoft.com/en-us/windows/msix/desktop/desktop-to-uwp-behind-the-scenes
In this way when the appdata is isolated and when the application is uninstalled all the application data is safely removed.
It looks like that the QSaveFile mechanism, that write to a temporary file and then does a copy, does not work properly in the shadow place.
As you see on the images of Process Monitor Log the data writing to a temporary file, is successful, but then the file is not accessible.
We suppose the problem is related to the Windows Store isolation process and therefore we will report to Microsoft.
But I also do report in the Qt bug, in case it can be related to the QT QSaveFile mechanism and other are experimenting similar behaviors.
For time reason is not possible at the moment to create a replicate the situation.
We have also never done debug on a Windows Nsix packaged application.
We have seen there is a new post on that:
https://docs.microsoft.com/en-us/windows/msix/desktop/desktop-to-uwp-debug
We will test with other configurations and with other versions of Window and update the situation here.