Skip to content

[Skia] ApplicationData.Current.LocalFolder redirects to %appdata% #8910

Closed

Description

@jeromelaban

Current behavior

ApplicationData.Current.LocalFolder redirects to %appdata%, but should redirect to a more app-specific folder.

Expected behavior

Writing to ApplicationData.Current.LocalFolder should be specific to the running app.

Anything else we need to know?

Note for contributors

The behavior for this is currently undefined, as it is mapped to the UWP behavior. We should be mapping to the behavior that ApplicationData.Current.LocalFolder shows when running a unpackaged WinAppSDK app for the same API.

Activity

  1. added
    kind/bug
    triage/untriaged
    difficulty/tbd
    project/non-ui ⚙️
    and removed
    triage/untriaged
    on May 28, 2022
  2. added
    difficulty/starter 🚀
    and removed
    difficulty/tbd
    on May 30, 2022
  3. MartinZikmund commented on May 30, 2022

    @MartinZikmund
    Member

    This will be a breaking change, but should probably be done soon.

  4. MartinZikmund commented on Dec 14, 2022

    @MartinZikmund
    Member

    @jeromelaban I think this is one of the breaking changes that are really needed for the next major release

  5. MartinZikmund commented on Feb 27, 2023

    @MartinZikmund
    Member

    Currently unpackaged WinAppSDK apps just crash when ApplicationData.Current is used. See microsoft/WindowsAppSDK#2639, microsoft/WindowsAppSDK#2621 .

    Because we have the Package.appxmanifest, I think for the default behavior we can read the publisher and app id from there, and also provide a FeatureConfiguration to let the developer to override the path and store the app data/settings somewhere else as needed, does that sound like a good solution @jeromelaban ?

  6. jeromelaban commented on Feb 27, 2023

    @jeromelaban
    MemberAuthor

    altering the path using publisher and appid makes sense yes, as for feature configuration, I wonder if an helper class would be more appropriate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

difficulty/starter 🚀kind/bugproject/non-ui ⚙️

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions