Use XDG base directories by default on Unix systems by liff · Pull Request #60 · oracle/visualvm

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@liff

Copy link Copy Markdown

@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.
JindrichPilar, pavlus, NotAShelf, JLyne, 0x6675636b796f75676974687562, Selebrator, and null-dev reacted with thumbs up emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer

@0x6675636b796f75676974687562 0x6675636b796f75676974687562 0x6675636b796f75676974687562 approved these changes

Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@liff @0x6675636b796f75676974687562