You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 18, 2025. It is now read-only.
|`cacheDir`|`$XDG_CACHE_HOME`/`<project_path>` or `$HOME`/.cache/`<project_path>`|`{FOLDERID_LocalApplicationData}`/`<project_path>`/cache |`$HOME`/Library/Caches/`<project_path>`|
153
-
|`configDir`|`$XDG_CONFIG_HOME`/`<project_path>` or `$HOME`/.config/`<project_path>`|`{FOLDERID_ApplicationData}`/`<project_path>`/config |`$HOME`/Library/Preferences/`<project_path>`|
154
-
|`dataDir`|`$XDG_DATA_HOME`/`<project_path>` or `$HOME`/.local/share/`<project_path>`|`{FOLDERID_ApplicationData}`/`<project_path>`/data |`$HOME`/Library/Application Support/`<project_path>`|
155
-
|`dataLocalDir`|`$XDG_DATA_HOME`/`<project_path>` or `$HOME`/.local/share/`<project_path>`|`{FOLDERID_LocalApplicationData}`/`<project_path>`/data |`$HOME`/Library/Application Support/`<project_path>`|
|`cacheDir`|`$XDG_CACHE_HOME`/`<project_path>` or `$HOME`/.cache/`<project_path>`|`{FOLDERID_LocalApplicationData}`/`<project_path>`/cache |`$HOME`/Library/Caches/`<project_path>`|
154
+
|`configDir`|`$XDG_CONFIG_HOME`/`<project_path>` or `$HOME`/.config/`<project_path>`|`{FOLDERID_ApplicationData}`/`<project_path>`/config |`$HOME`/Library/Application Support/`<project_path>`|
155
+
|`dataDir`|`$XDG_DATA_HOME`/`<project_path>` or `$HOME`/.local/share/`<project_path>`|`{FOLDERID_ApplicationData}`/`<project_path>`/data |`$HOME`/Library/Application Support/`<project_path>`|
156
+
|`dataLocalDir`|`$XDG_DATA_HOME`/`<project_path>` or `$HOME`/.local/share/`<project_path>`|`{FOLDERID_LocalApplicationData}`/`<project_path>`/data |`$HOME`/Library/Application Support/`<project_path>`|
157
+
|`preferenceDir`|`$XDG_CONFIG_HOME`/`<project_path>` or `$HOME`/.config/`<project_path>`|`{FOLDERID_ApplicationData}`/`<project_path>`/config |`$HOME`/Library/Preferences/`<project_path>`|
The specific value of `<project_path>` is computed by the
159
161
@@ -185,7 +187,24 @@ The version number of this library consists of a whole number, which is incremen
185
187
186
188
## Changelog
187
189
188
-
### 12 – current stable version
190
+
### 20 – current stable `dev.dirs:directories` release
191
+
192
+
-**BREAKING CHANGE** The behavior of `configDir` on macOS has been adjusted:
193
+
-`BaseDirectories#configDir` and `ProjectDirectories#configDir` have been changed to use the `Application Support` directory,
194
+
[as suggested by Apple documentation](https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/MacOSXDirectories/MacOSXDirectories.html).
195
+
- If you have used `BaseDirectories#configDir` or `ProjectDirectories#configDir` to store files,
196
+
it may be necessary to write code that migrates the files to the new location.
197
+
(Alternative: change usages of `configDir` to `preferenceDir` to keep the old (pre-v20) behavior.)
198
+
- The behavior of `configDir` on non-macOS platforms has not been changed.
199
+
-`BaseDirectories#preferenceDir` and `ProjectDirectories#preferenceDir` have been added:
200
+
- They use the `Preferences` directory on macOS, like `configDir` did before version 20.
201
+
– `preferenceDir` behaves identical to `configDir` on non-macOS platforms.
202
+
203
+
### 19-13 – Reserved for bug fixes on `soc.github.io`
204
+
205
+
### 12 – current stable legacy `soc.github.io` release
206
+
207
+
_Please refer to [the legacy branch](https://github.com/dirs-dev/directories-jvm/tree/legacy) for the documentation and artifact coordinates of the `soc.github.io` artifact._
189
208
190
209
- Adjust library to deal with breaking changes in Java caused by CVE-2019-2958 (see JDK-8221858). Thanks @alexarchambault!
191
210
- Support Solaris. Thanks @tomasjura!
@@ -267,3 +286,6 @@ The version number of this library consists of a whole number, which is incremen
267
286
- Changes to the directory for executables:
268
287
- Support for `executableDir` has been dropped on macOS.
269
288
- The value of `executableDir` considers `$XDG_BIN_HOME` now, before falling back to `$XDG_DATA_HOME/../bin` and `$HOME/.local/bin`.
Copy file name to clipboardExpand all lines: src/main/java/dev/dirs/BaseDirectories.java
+50-16Lines changed: 50 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
packageio.github.soc.directories;
1
+
packagedev.dirs;
2
2
3
-
importstaticio.github.soc.directories.Util.*;
3
+
importstaticdev.dirs.Util.*;
4
4
5
5
/** {@code BaseDirectories} provides paths of user-invisible standard directories, following the conventions of the operating system the library is running on.
6
6
* <p>
@@ -73,7 +73,7 @@ public final class BaseDirectories {
73
73
*/
74
74
publicfinalStringcacheDir;
75
75
76
-
/** Returns the path to the user's config directory.
76
+
/** Returns the path to the user's configuration directory.
0 commit comments