electron-userland / electron-windows-store

:package: Turn Electron Apps into Windows AppX Packages
MIT License
678 stars 86 forks source link

electron-settings and electron-log cannot create AppData/Local/Packages/<appx>/LocalCache/Roaming subfolder #144

Open conteit opened 3 years ago

conteit commented 3 years ago

I'm using electron-forge for generating an Electron app (v. 11.x).

I'm trying to use electron-settings and electron-log for managing settings and log files in a platform independent way and exploiting AppData folders on Windows.

If I run the application as a standard windows app files gets automatically created in AppData/Roaming folder. But if I bundle the app as an UWP Appx the app is not able to create them or write to them until I manually create them.

Once somebody creates the files (in AppData/Local/Packages//LocalCache/Roaming) the app uses them, otherwise the app silently fails accessing them:

Without the Appx wrapping files gets handled automatically. Any idea why?

T-serhiibulakh commented 2 years ago

@conteit Hello) Did you find a solution?