Ignore:
Timestamp:
2016-10-25T19:05:35+02:00 (7 years ago)
Author:
bastiK
Message:

fixed #6664 - use XDG Base Directory Specification on Linux

If existing ~/.josm directory is found, it will be used as before.
Otherwise, ~/.cache/JOSM, ~/.local/share/JOSM and
~/.config/JOSM are used for cache, user data and preferences.

New system property option -Djosm.dir.name=... to change this to
~/.cache/JOSM-latest, etc. for the josm-latest package.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java

    r11156 r11162  
    358358            p = System.getenv("APPDATA");
    359359        }
    360         return new File(new File(p, "JOSM"), "cache");
     360        return new File(new File(p, Main.pref.getJOSMDirectoryBaseName()), "cache");
    361361    }
    362362
    363363    @Override
    364364    public File getDefaultPrefDirectory() {
    365         return new File(System.getenv("APPDATA"), "JOSM");
     365        return new File(System.getenv("APPDATA"), Main.pref.getJOSMDirectoryBaseName());
    366366    }
    367367
Note: See TracChangeset for help on using the changeset viewer.