Skip to content

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

@conteit

Description

@conteit

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:

  • log calls succeed but nothing gets written nor the file created
  • settings file uses defaults like the file is empty and is not able to write defaults to it nor creating the default settings file

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions