This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 215961 - store user data in folders from freedesktop XDG Base Directory specification
Summary: store user data in folders from freedesktop XDG Base Directory specification
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Launchers&CLI (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: Libor Fischmeistr
Depends on:
Reported: 2012-07-25 17:39 UTC by leuni
Modified: 2014-02-10 14:16 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description leuni 2012-07-25 17:39:35 UTC
Similar to bug 196075 -- where choosing well known windows specific directories was requested for userdir and cachedir -- it would be nice to have the same for Linux distributions or other Unix systems with a desktop environment like GNOME, LXDE, KDE or XFCE.

The XDG Base Directory Specification at is a standard that is followed by these DE's and defines directory locations suitable for containing netbeans' userdir and cachedir.

The solution for bug 196075 already included setting cachedir to $HOME/.cache/netbeans by default (like Ubuntu: bug 196075, comment 17) although no standard seemed to be known (bug 196075, comment 17).

XDG Base Directory Specification already defines a "directory relative to which user-specific non-essential (cached) data should be written". In short: under whatever is specified by $XDG_CACHE_HOME, or under $HOME/.cache, if that environment variable is not set. Netbeans seems to conform to the latter part.

This request is for netbeans
1. to follow the specified behavior completely and first try $XDG_CACHE_HOME if set, and $HOME/.cache otherwise for cached data.
2. to store its user specific configuration under $XDG_CONFIG_HOME or $HOME/.config respectively
3. to store other user specific data (not projects) under $XDG_DATA_HOME or $HOME/.local/share respectively. This could be the biggest part so could be thrown together with 2. or stay where it is currently

For plugins there is currently nothing in XDG Base Directory Specification -- a discussion on their mailing list from December 2011 (here: mainly discusses "dlopened plugins not libraries". This seems to indicate that plugins don't fit into 3. but no alternative is specified yet.