NB and XDG Base Directory support
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Description
Netbeans stores its files in the following directories:
```
~/.cache/netbeans/19
~/.netbeans/19/config
~/.netbeans/19/var
```
As I understand (I can be wrong) that NB supports XDG Base Directory partially. I would suggest either to support this specification fully or not to support it at all. Because it is very illogical and confusing every time I want to clear cache or see config files of NB.
So, it should be either:
```
~/.cache/netbeans/19 // XDG_CACHE_HOME
~/.config/netbeans/19/ //XDG_CONFIG_HOME
~/.local/state/netbeans/19/ //XDG_STATE_HOME
```
or
```
~/.netbeans/19/cache
~/.netbeans/19/config
~/.netbeans/19/var
```
Useful links:
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
https://github.com/adrg/xdg/blob/master/README.md
### Use case/motivation
_No response_
### Related issues
_No response_
### Are you willing to submit a pull request?
No
Contributor guide
Research direction
Start by comparing the current NetBeans directories listed in the issue with the linked XDG Base Directory specification and determine which existing path-handling entry points govern them. The work is done when the project selects one consistent layout, documents the decision, and applies it consistently to cache, configuration, and state directories.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- desktop, operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100