File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
common/src/main/java/me/djtheredstoner/devauth/common/util Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,10 @@ public class Util {
2424
2525 public static File getDefaultConfigDir () {
2626 String osName = System .getProperty ("os.name" );
27- if (osName .startsWith ("Linux" ) || osName .startsWith ("FreeBSD" ) || osName .startsWith ("SunOS" ) || osName .startsWith ("Unix" )) {
27+ if (osName .startsWith ("Mac" )) {
28+ String applicationSupport = System .getProperty ("user.home" ) + File .separator + "Library" + File .separator + "Application Support" ;
29+ return new File (applicationSupport , "DevAuth" );
30+ } else if (osName .startsWith ("Linux" ) || osName .startsWith ("FreeBSD" ) || osName .startsWith ("SunOS" ) || osName .startsWith ("Unix" )) {
2831 String xdgConfigHome = System .getenv ("XDG_CONFIG_HOME" );
2932 if (xdgConfigHome == null ) xdgConfigHome = System .getProperty ("user.home" ) + File .separator + ".config" ;
3033 return new File (xdgConfigHome , "devauth" );
You can’t perform that action at this time.
0 commit comments