-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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 directory specification for $HOME/.ZAP #7718
Comments
There's the |
@pawelwaniek do you know offhand which Linux distros recommend this? Or is it all of them?? |
The XDG specification recommends to use environment variables to choose the correct folder to store data. This means every distro/user can use what $XDG_CONFIG_HOME etc. should point to. This is also not only related to Linux. Many macOS Application also use XDG env variables. In general, almost every Linux distro (expect some super niche crazy one) recommend to complying with XDG. Even tough not all of them set XDG_* environment variables per default, they use the recommended fallbacks. I think there are in general 3 challenges for implementation:
IMHO: it's not a very high priority for many projects and in the end, they decide against a refactoring to support XDG, because of the complexity and backwards compatibility, which I totally understand. Most of them provide some sort of environment variable to give the user the opportunity to change the config folder (e.g. $DOCKER_CONFIG, $AWS_CONFIG_FILE, $_JAVA_OPTIONS). Since there is apparently a |
The question for me is how important it is for our users? |
I'm biased and can't realistically say how many people want this feature, but there are already some tools for exactly that problem which help you to clean up your home directory, e.g.: https://github.com/b3nj5m1n/xdg-ninja |
@psiinon |
Will a decision be made regarding this issue? |
Nope, as you can see |
Its not something I would implement, and its only got one 👍 so it doesnt look like its that needed by people.. |
Is your feature request related to a problem? Please describe.
$HOME/.ZAP/ is used to store application data. It would be great if XDG standards are respected. This would help to:
Describe the solution you'd like
Storing config, cache and user data under $XDG_CONFIG_HOME $XDG_CACHE_HOME and $XDG_DATA_HOME ($HOME/.config | $HOME/.cache | $HOME/.local/share by default) and creating a fallback to $HOME if XDG directories are not present
Describe alternatives you've considered
Add a settings options, so the user can choose by themselves where to store the application data.
Screenshots
No response
Additional context
No response
Would you like to help fix this issue?
The text was updated successfully, but these errors were encountered: