Changes between Initial Version and Version 1 of Ticket #19006, comment 14


Ignore:
Timestamp:
2020-12-11T22:02:21+01:00 (3 months ago)
Author:
GerdP
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19006, comment 14

    initial v1  
    11Several problems here:
    2 1. JOSM stores possible paths for preferences in an unordered set. This looks completely wrong. See `org.openstreetmap.josm.data.Preferences.getAllPossiblePreferenceDirs()
     21. JOSM stores possible paths for preferences in an unordered set. This looks completely wrong. See `org.openstreetmap.josm.data.Preferences.getAllPossiblePreferenceDirs()`
    332. When looking for the version of a plugin JOSM searches in all of those directories, sometimes in a subdirectory plugins, sometimes in the directory name with plugins appended (because it doesn't always add the separator character). This is probably not intended. On my MS Windows machine this gives
    44{{{
     
    66C:\ProgramData\Roaming\JOSMplugins
    77}}}
    8 3. When loading the plugins JOSM only seems to search in the user data directory, in my case
    9 `C:\Users\Gerd\AppData\Roaming\JOSM\plugins`
     83. When loading the plugins JOSM only seems to search in the user data directory, in my case `C:\Users\Gerd\AppData\Roaming\JOSM\plugins`
    109
    1110To fix the problem I think I'll just change the code that looks for the version to use the same directory as the loader.