Changeset 14144 in josm for trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java
- Timestamp:
- 2018-08-12T14:45:46+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java
r13791 r14144 65 65 import java.util.Collection; 66 66 import java.util.Enumeration; 67 import java.util.HashSet; 67 68 import java.util.List; 68 69 import java.util.Locale; 69 70 import java.util.Properties; 71 import java.util.Set; 70 72 import java.util.concurrent.ExecutionException; 71 73 import java.util.concurrent.TimeUnit; … … 781 783 return file; 782 784 } 785 786 @Override 787 public Collection<String> getPossiblePreferenceDirs() { 788 Set<String> locations = new HashSet<>(); 789 String appdata = getSystemEnv("APPDATA"); 790 if (appdata != null && getSystemEnv("ALLUSERSPROFILE") != null 791 && appdata.lastIndexOf(File.separator) != -1) { 792 appdata = appdata.substring(appdata.lastIndexOf(File.separator)); 793 locations.add(new File(new File(getSystemEnv("ALLUSERSPROFILE"), appdata), "JOSM").getPath()); 794 } 795 return locations; 796 } 783 797 }
Note:
See TracChangeset
for help on using the changeset viewer.