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

Use XDG base directories by default on Unix systems #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

liff
Copy link

@liff liff commented Jan 31, 2018

See XDG Base Directory Specification .

Chooses userdir as follows:

  1. Use ~/.visualvm if it already exists (so as to not break existing usage),
  2. use $XDG_DATA_HOME/visualvm if XDG_DATA_HOME environment variable is defined and otherwise
  3. use ~/.local/share/visualvm.

Similarly for cachedir:

  1. Use ~/.cache/visualvm if it already exists or if XDG_CACHE_HOME environment variable is not defined, but if it is
  2. use $XDG_CACHE_HOME/visualvm.

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.

2 participants