Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

isFakeAccount
Copy link

@isFakeAccount isFakeAccount commented Jun 20, 2024

💸 TL;DR

  • 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.

  • Windows: C:\\Users\\<user>\\AppData\\Local\\devvit
  • Mac OS: /Users/<user>/Library/Application Support/devvit
  • Linux: /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

  • CI tests (if present) are passing
  • Adheres to code style for repo
  • [✅ ] Contributor License Agreement (CLA) completed if not a Reddit employee

… homedir

- 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant