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

Add support for XDG_CONFIG_HOME #185

Closed
0az opened this issue Apr 3, 2020 · 1 comment
Closed

Add support for XDG_CONFIG_HOME #185

0az opened this issue Apr 3, 2020 · 1 comment

Comments

@0az
Copy link

0az commented Apr 3, 2020

Right now, I have a patch (wip) to implement XDG_CONFIG_HOME on an opt-in basis. That is, XDG_CONFIG_HOME is used if and only if .jupyter does not exist. This minimizes breakage by ensuring that the change only affects:

  1. New users with XDG_CONFIG_HOME set,
  2. Existing users with XDG_CONFIG_HOME set who explicitly migrate,
  3. Existing users with XDG_CONFIG_HOME set who delete their .jupyter directory for any other reason.

The solution to cases 1/3 is documentation, and I'm willing to update the docs in jupyter/jupyter, and any other locations.

The question is: should the Linux default get set to .config, when it isn't set? This is a more significant change in behavior, but it parallels the existing default of .local/share.

matyama added a commit to matyama/configs that referenced this issue Apr 10, 2022
Addresses #17
 - Adds `JUPYTER_CONFIG_DIR` pointing to `XDG_CONFIG_HOME` to `.zshenv`
 - Documents situation around IPython
 - NOte: out-of-the-box XDG support is still an open issue - see:
   jupyter/jupyter_core#185

After reloading the shell (i.e. once `JUPYTER_CONFIG_DIR` is in scope),
one can simply move/rename `~/.jupyter` to `JUPYTER_CONFIG_DIR`.
@jasongrout
Copy link
Member

I think this is now implemented with #292, where we use xdg if it is defined.

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

No branches or pull requests

2 participants