-
-
Notifications
You must be signed in to change notification settings - Fork 391
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
Respect XDG Base Directory Specification #1538
Comments
What are the benefits of this change? |
@silvanocerza it's not a change. It's a fix. If you don't understand why, please follow to mentioned arduino issue and read. This has been discussed enough. Feel free to close this issue, it's not for developers, it is for users who understand why. |
It's a change to an existing and established behaviour, a breaking change for all existing users too. If you feel strongly for this feature and think it's important feel free to open a PR, I'll be glad to review it. |
@silvanocerza this patch is not change for existing behaviour for linux users, it does exactly opposite, fix the broken for years behaviour of this application. Linked specification clearly describes default linux/unix application files locations. For example, all my ~/.config directory is backuped daily, and I don't want to mess with neither finding other essential files to backup nor exclude anything. This directory usually contains only text config files. And I always know where should I go to change any application config - ~/.config/<app_name> ~/.cache directory should contain temporary data that could be deleted at any time without any impact. I'm not willing to make a PR now. This issue have been arised many times and always been declined. I made this patch for users who want to keep their user directory clean despite poorly written application. Currently this is a dirty hack to drop all the junk from where it is now to appropriate locations. |
Additionally, I'd take this a step further. Having just installed the Claiming that this introduces a "breaking change" is picking an odd hill to die on at this point. |
Hi all,
This is not a bug report, because practice has prove that XDG specs, linux users and common sense are ignored by Arduino project.
So, like in arduino/Arduino#7651, I'll just provide a patch that fixes the issue for linux users seeking to keep their home directories clean.
NOTE: This patch does not make any sense for Windows and Mac users. Sorry.Some info about XDG base directory specification:
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html#introduction
The patch : https://github.com/Perlovka/portage-overlay/blob/1a8ac45f54f40e1bc6e697aeee4f973248277ee2/dev-embedded/arduino-cli/files/arduino-cli-0.19.3-xgd-compliance.patchUpdated version: https://github.com/Perlovka/portage-overlay/blob/eeb083c401b7c2d45fcdbb08f0fe5e7b426ff15f/dev-embedded/arduino-cli/files/arduino-cli-0.19.3-xgd-compliance.patch
This version uses arduino for all directory names instead of arduino-cli
Also, used built in Go functions for UserConfigDir and UserCacheDir, which works also for Mac and Win users.
Latest version of the patch could always be found here: https://github.com/Perlovka/portage-overlay/tree/master/dev-embedded/arduino-cli/files
Directory layout after applying the patch:
This patch also fixed configDir path, that is mentioned here:
arduino-cli/configuration/configuration.go
Line 57 in f7b22f7
But seems that this value is currently not used elsewhere in the code.
Cheers, may Linux be with you.
The text was updated successfully, but these errors were encountered: