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

don't use XDG path on OS X #1794

Merged
merged 1 commit into from May 31, 2012
Merged

don't use XDG path on OS X #1794

merged 1 commit into from May 31, 2012

Conversation

minrk
Copy link
Member

@minrk minrk commented May 31, 2012

This should never have been used on OS X.

A few relevant tests adjusted and added appropriately.

It would rarely come up, but occasional bad OS X citizens would create a ~/.config dir, and new OS X installs of IPython after this point would use this dir.

It's entirely possible that zero users have been affected by this so far.

This should never have been used on OS X.

A few relevant tests added and adjusted appropriately.
@fperez
Copy link
Member

fperez commented May 31, 2012

Unlikely to hit problem, but better to do it cleanly. Looks good, merging.

fperez added a commit that referenced this pull request May 31, 2012
Don't use XDG path on OS X.

While unlikely to be an issue in practice, an occasional bad OS X citizens could create a ~/.config dir, and new OS X installs of IPython after this point would use this dir.
@fperez fperez merged commit 0afa082 into ipython:master May 31, 2012
@ellisonbg
Copy link
Member

Just for reference, on OS X, my .config directory is used by 3 non-IPython entities and my IPython dir is in there as well.

@fperez
Copy link
Member

fperez commented May 31, 2012

Mmh, it was bound to have hit someone :) There must be a rule somewhere about how, no matter how unlikely a corner case of your code may be, someone on the internet will be hit by it. With the corollary that if it's not a flat-out crashing bug, someone will also depend on it :)

@rkern
Copy link
Contributor

rkern commented May 31, 2012

I kind of liked having it under ~/.config/. Oh well.

@minrk
Copy link
Member Author

minrk commented May 31, 2012

We have a solution for you: export IPYTHONDIR=$HOME/.config/ipython :)

@minrk minrk deleted the osx_noxdg branch March 31, 2014 23:36
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
Don't use XDG path on OS X.

While unlikely to be an issue in practice, an occasional bad OS X citizens could create a ~/.config dir, and new OS X installs of IPython after this point would use this dir.
@jcrben
Copy link

jcrben commented Nov 13, 2016

I will use the workaround - however - XDG is not a macOS spec spec, but if a macOS user went through the trouble of setting the environment variable, then they probably want it to be used. Git, for example, uses XDG_CONFIG_HOME on macOS if it is set. And I think we're all happier for it.

@minrk
Copy link
Member Author

minrk commented Nov 18, 2016

@jcrben good point. Respecting the environment variable when set and using XDG defaults aren't the same thing. We could still respect the env when set while having platform-appropriate defaults when not set.

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

6 participants