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

Comply with XDG specification #4680

Closed
wants to merge 2 commits into from
Closed

Comply with XDG specification #4680

wants to merge 2 commits into from

Conversation

Jappie3
Copy link

@Jappie3 Jappie3 commented Jun 26, 2023

Modified get_default_core_dir() so that it respects the XDG specification and does not clutter people's home directories with .platformio folders. See issue #2872.

I left Windows alone since they don't really do XDG - I believe they have their own conventions, e.g. %APPDATA% and stuff like that. Platformio also doesn't adhere these, but I'll leave that to someone else to figure out.

Besides that, I also had to modify test_config.py so that it would not freak out because of the changes in options.py.

More info about the XDG specification:
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
https://xdgbasedirectoryspecification.com/

@CLAassistant
Copy link

CLAassistant commented Jun 26, 2023

CLA assistant check
All committers have signed the CLA.

@Jappie3
Copy link
Author

Jappie3 commented Jun 26, 2023

Thinking about this a little bit more, it doesn't really make sense to dump everything XDG_CONFIG_HOME... maybe XDG_DATA_HOME is better suited? or should the files be divided over config & data (that would complicate things)

@Jappie3 Jappie3 closed this by deleting the head repository Aug 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants