reddit / devvit

Reddit for Developers
https://developers.reddit.com
BSD 3-Clause "New" or "Revised" License
59 stars 13 forks source link

Switches to using User Data Directory to store credentials instead of homedir #76

Open isFakeAccount opened 2 months ago

isFakeAccount commented 2 months ago

๐Ÿ’ธ 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.

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