- Timestamp:
- 2014-12-19T13:30:53+01:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/Preferences.java
r7829 r7831 550 550 preferencesDirFile = new File(path).getAbsoluteFile(); 551 551 } else { 552 path = System.getenv("APPDATA"); 553 if (path != null) { 554 preferencesDirFile = new File(path, "JOSM"); 555 } else { 556 preferencesDirFile = new File(System.getProperty("user.home"), ".josm"); 557 } 552 preferencesDirFile = Main.platform.getDefaultPrefDirectory(); 558 553 } 559 554 return preferencesDirFile; -
trunk/src/org/openstreetmap/josm/tools/PlatformHook.java
r7829 r7831 127 127 */ 128 128 public File getDefaultCacheDirectory(); 129 130 /** 131 * Returns the platform-dependent default preferences directory. 132 * @return the platform-dependent default preferences directory 133 * @since 7831 134 */ 135 public File getDefaultPrefDirectory(); 129 136 } -
trunk/src/org/openstreetmap/josm/tools/PlatformHookOsx.java
r7829 r7831 328 328 return new File(System.getProperty("user.home")+"/Library/Caches", "JOSM"); 329 329 } 330 331 @Override 332 public File getDefaultPrefDirectory() { 333 return new File(System.getProperty("user.home")+"/Library/Preferences", "JOSM"); 334 } 330 335 } -
trunk/src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java
r7829 r7831 375 375 return new File(Main.pref.getPreferencesDirFile(), "cache"); 376 376 } 377 378 @Override 379 public File getDefaultPrefDirectory() { 380 return new File(System.getProperty("user.home"), ".josm"); 381 } 377 382 } -
trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java
r7829 r7831 288 288 return new File(System.getenv("LOCALAPPDATA")+"/JOSM", "cache"); 289 289 } 290 291 @Override 292 public File getDefaultPrefDirectory() { 293 return new File(System.getenv("APPDATA"), "JOSM"); 294 } 290 295 }
Note:
See TracChangeset
for help on using the changeset viewer.