Opened 18 years ago
Closed 18 years ago
#121 closed defect (fixed)
Preferences folder in wrong location on Windows
Reported by: | anonymous | Owned by: | imi |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | Core | Version: | tested |
Keywords: | Cc: |
Description
JOSM puts its preferences folder in the wrong place when running on Windows.
The location it chooses is:
<user home>/.josm
This is correct on Linux, but on windows the location should be:
<user home>\Application Data\JOSM
It's true that most open source software originating from the nix world also gets this wrong. On Windows XP the user's home directory isn't really visible (the user is presented with the My Documents folder as the lowest level) so this isn't really a problem. However, on Windows Vista this has changed and <user home> is now obvious and contains "Documents", "Pictures", "Music" etc, and now ".josm" too, which isn't by default hidden.
Windows localize the names for the different folders, so it is not "Application Data" everywhere. ;-)
Now, I use the environment variable "APPDATA" if present, which I believe is always set under Windows and generally unused under unix/linux.