-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
XDG_CONFIG_HOME support does not follow spec #8208
Comments
I think it says that curl should, if And this of course makes this a complicated maze of decisions... |
That should be close enough to work as expected. The decisions which would need to be made would be basically the following:
|
I wish it was that simple: https://github.com/curl/curl/blob/master/src/tool_findfile.c |
... after the initial checks for .curlrc and if XDG_CONFIG_HOME is not set, use $HOME and $CURL_HOME to check if ~/.config/curlrc is present. Add test 436 to verify Reported-by: Sandro Jaeckel Fixes #8208
... after the initial checks for .curlrc and if XDG_CONFIG_HOME is not set, use $HOME and $CURL_HOME to check if ~/.config/curlrc is present. Add test 436 to verify Reported-by: Sandro Jaeckel Fixes #8208
... after the initial checks for .curlrc and if XDG_CONFIG_HOME is not set, use $HOME and $CURL_HOME to check if ~/.config/curlrc is present. Add test 436 to verify Reported-by: Sandro Jaeckel Fixes #8208
Well thank you for implementing the XDG support in the first place. It calms my OCD to clear out dotfiles from the home dir. |
I'm running curl 8.4.0 and I'm still seeing this behavior. This should be fixed in this version, right? Moving |
I don't know... please take further discussion to #12129 |
I did this
I created
~/.config/curlrc
with onlyhead
in it which should be picked up if curl has correct XDG_CONFIG_HOME support.I expected the following
That the next curl command I execute shows me headers.
What actually happened
curl expects the file to be in
~/.config/.curlrc
and theXDG_CONFIG_HOME
env needs to be set to~/.config/
.How it should actually work
curl should treat an unset
XDG_CONFIG_HOME
env as being equal to$HOME/.config
. See https://wiki.archlinux.org/title/XDG_Base_Directory#User_directoriesAlso the
curlrc
file underXDG_CONFIG_HOME
should not require a dot in the beginning.curl/libcurl version
operating system
The text was updated successfully, but these errors were encountered: