@@ -73,7 +73,7 @@ public final class BaseDirectories {
*/
public final String cacheDir;
- /** Returns the path to the user's config directory.
+ /** Returns the path to the user's configuration directory.
*
*
macOS | - *{@code $HOME}/Library/Preferences | - */Users/Alice/Library/Preferences | + *{@code $HOME}/Library/Application Support | + */Users/Alice/Library/Application Support | *||||||||||||||||||||||||||
Windows | @@ -181,6 +181,33 @@ public final class BaseDirectories { */ public final String executableDir; + /** Returns the path to the user's preferences directory. + *
Platform | + *Value | + *Example | + *
---|---|---|
Linux/BSD | + *{@code $XDG_CONFIG_HOME} or {@code $HOME}/.config | + */home/alice/.config | + *
macOS | + *{@code $HOME}/Library/Preferences | + */Users/Alice/Library/Preferences | + *
Windows | + *{@code {FOLDERID_RoamingAppData}} | + *C:\Users\Alice\AppData\Roaming | + *
macOS | - *{@code $HOME}/Library/Preferences/{@code |
- * /Users/Alice/Library/Preferences/com.Foo-Corp.Bar-App | + *{@code $HOME}/Library/Application Support/{@code |
+ * /Users/Alice/Library/Application Support/com.Foo-Corp.Bar-App | *||||||||
Windows | @@ -155,6 +157,34 @@ private ProjectDirectories( */ public final String dataLocalDir; + /** Returns the path to the project's preferences directory, + * in which {@code
Platform | + *Value | + *Example | + *
---|---|---|
Linux/BSD | + *{@code $XDG_CONFIG_HOME}/{@code |
+ * /home/alice/.config/barapp | + *
macOS | + *{@code $HOME}/Library/Preferences/{@code |
+ * /Users/Alice/Library/Preferences/com.Foo-Corp.Bar-App | + *
Windows | + *{@code {FOLDERID_RoamingAppData}}\{@code |
+ * C:\Users\Alice\AppData\Roaming\Foo Corp\Bar App\config | + *