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

Add missed a slash in SAVE_PATH #229

Merged
merged 1 commit into from Jan 10, 2022
Merged

Add missed a slash in SAVE_PATH #229

merged 1 commit into from Jan 10, 2022

Conversation

judaew
Copy link
Contributor

@judaew judaew commented Nov 27, 2021

@@ -7,4 +7,4 @@
if os.getenv("XDG_CACHE_HOME") is not None:
SAVE_PATH = os.getenv("XDG_CACHE_HOME") + "/spotifydl"
else:
SAVE_PATH = os.getenv("HOME") + ".cache/spotifydl"
SAVE_PATH = os.getenv("HOME") + "/.cache/spotifydl"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should ideally be using PathLib to make it crossplatform compatible

SathyaBhat referenced this pull request Jan 10, 2022
I think the best idea is to store non-essential files (that can be
deleted without harm) in XDG_CACHE_HOME, as required by the
XDG Base Directory specification.

See https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

For systems that do not have this environment variable by default, can
use ${HOME}/.cache.

This will help reduce the number of directories in the user's home
directory.
@SathyaBhat SathyaBhat merged commit 9f4850b into SathyaBhat:master Jan 10, 2022
judaew added a commit to macports/macports-ports that referenced this pull request Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants