Switches to using User Data Directory to store credentials instead of homedir.
If User Data Directory is not applicable for an OS then it falls back on using the homedir to save credentials.
๐ Details
The goal of this PR is to make devvit conform to each operating system's user data directory guidelines for storing app data instead of creating directory in home directory. This is where the devvit directory will be depending on the OS.
๐ธ TL;DR
๐ Details
The goal of this PR is to make devvit conform to each operating system's user data directory guidelines for storing app data instead of creating directory in home directory. This is where the devvit directory will be depending on the OS.
C:\\Users\\<user>\\AppData\\Local\\devvit
/Users/<user>/Library/Application Support/devvit
/home/<user>/.local/share/devvit
If none of the OS in the list above matches then it defaults to using homedir for storing credentials.
๐งช Testing Steps / Validation
This PR hasn't been tested yet because I couldn't build locally on my machine :/
โ Checks