Skip to content

Commit

Permalink
Merge pull request #21 from KotM/patch-1
Browse files Browse the repository at this point in the history
%LocalAppData%
  • Loading branch information
caesay authored Aug 20, 2024
2 parents 3c89ce9 + d65c70d commit d164fa0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/integrating/preserved-files.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ If you want to create files which persist even if the app is uninstalled (eg. im
Many error crash handling utilities will store error/crash reports to the application directory by default, and will upload them as a report the next time the application starts.

You need to ensure any of these libraries can be configured with a database / storage directory outside of the current application directory somewhere.
On Windows, you just need to be outside the `%LocalAppData\{packId}\current` directory. So you could use `..\` (this is the same as `%LocalAppData\{packId}`).
On Windows, you just need to be outside the `%LocalAppData%\{packId}\current` directory. So you could use `..\` (this is the same as `%LocalAppData%\{packId}`).

## Non-Windows
For other non-Windows operating systems, you should search online to find best practices about where to store settings/log files for installed apps.
The recommended location is OS / distro specific, and might be in `/var` or somewhere in user home `~` (eg. `~/Library/Application Support` on MacOS).
The recommended location is OS / distro specific, and might be in `/var` or somewhere in user home `~` (eg. `~/Library/Application Support` on MacOS).

0 comments on commit d164fa0

Please sign in to comment.